This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug build/12116] AIX 6.1 declares getthrds() in <procinfo.h>
- From: "haubi at gentoo dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 05 Dec 2012 14:56:31 +0000
- Subject: [Bug build/12116] AIX 6.1 declares getthrds() in <procinfo.h>
- Auto-submitted: auto-generated
- References: <bug-12116-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12116
--- Comment #10 from Michael Haubenwallner <haubi at gentoo dot org> 2012-12-05 14:56:31 UTC ---
(In reply to comment #8)
> On AIX 7.1, the 4rth argument is a tid_t *, not a pthdb_tid_t *.
This is true for AIX 6.1 too - and also AIX 5.3, although the declaration in
procinfo.h actually is missing on AIX 5.3:
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/topic/com.ibm.aix.basetechref/doc/basetrf1/getthrds.htm
http://pic.dhe.ibm.com/infocenter/aix/v6r1/topic/com.ibm.aix.basetechref/doc/basetrf1/getthrds.htm
http://pic.dhe.ibm.com/infocenter/aix/v7r1/topic/com.ibm.aix.basetechref/doc/basetrf1/getthrds.htm
The declarations itself are this ones on both 6.1 and 7.1:
extern int getthrds( pid_t, void *, int, tid_t *, int );
extern int getthrds64( pid_t, void *, int, tid64_t *, int );
One thing to note eventually:
In procinfo.h on both AIX 6.1 and 7.1 there is a struct thrdentry64_v2 with
this comment:
/*
* thrdentry64_v2: Increased size thrdentry64_v2 struct.
*
* thrdentry64_v2 is an increased size version of thrdentry64 that contains
* the new thread information fields. The getthrds64() service contains
* support for callers passing either a thrdentry64 or a thrdentry64_v2
* size structure.
*
* AIX 6100 TL 4 (61H) required additional getthrds64() thread information
* fields. There was not enough unused space in thrdentry64 to contain the
* additional fields. Increasing the size of thrdentry64 to contain the
* additional fields causes a core file compatibility problem because
* struct core_dumpxx in core.h includes thrdentry64. Programs compiled
* with previous versions of AIX can not correctly read AIX 6100 TL 4
* core files.
*/
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.