This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

minor portability patches


Hi,

We just built gdb-7.2 and had a couple of minor issues.

Patches attached, some I am less sure about than others.

When we build --with-python, IRIX 6.5 needed -lpthread, I don't know if
this is the correct place to add that though.

__FUNCTION__ is a gccism.

AIX 6.1 does prototype getthrds in /usr/include/procinfo.h, though not
identically to gdb's prototype, it has these:
extern  int     getthrds( pid_t, void *, int, tid_t *, int );
extern  int     getthrds64( pid_t, void *, int, tid64_t *, int );

Also avoid some warnings on AIX about ptrace32's third argument.

-rdynamic was being added regardless, causing link failures on multiple
platforms.

At least solaris cc complained about returning from void functions.

Thanks,
Peter
-- 
Peter O'Gorman
pogma@thewrittenword.com

Attachment: 0001-Do-not-use-__FUNCTION__.patch
Description: Text document

Attachment: 0002-Allow-build-to-succeed-on-AIX-6.1.patch
Description: Text document

Attachment: 0003-Don-t-use-rdynamic-by-default-for-non-gcc.patch
Description: Text document

Attachment: 0004-Don-t-return-from-void-functions.patch
Description: Text document

Attachment: 0005-IRIX-6.5-needs-lpthread.patch
Description: Text document

Attachment: 0006-Initialize-cplus_struct_default-portably.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]