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]

Re: [PATCH] fix spurious FAIL in py-inferior.exp (x86-solaris)


On Mon, 07 Mar 2011 05:39:23 +0100, Joel Brobecker wrote:
> > On Friday 04 March 2011 12:18:01, Mark Kettenis wrote:
> > > That's a bug in the Solaris thread support. So...
> > 
> > It's by design.   Consequence of the M:N support, IIRC.
> > (I didn't design it!)
> 
> So, are we OK with this patch?

I do not have a fix but there seems to me mistaken LWP<->PID, each thread gets
duplicated once as {PID, 0, ID} and once as {PID, ID, 0}.

(gdb) info threads 
  Id   Target Id         Frame 
  10   Thread 4 (LWP 4)  start3 (arg=0x0) at threadit.c:9
  9    Thread 3 (LWP 3)  start2 (arg=0x0) at threadit.c:8
  8    Thread 2 (LWP 2)  start1 (arg=0x0) at threadit.c:7
* 7    Thread 5 (LWP 5)  start4 (arg=0x0) at threadit.c:10
  6    LWP    5          start4 (arg=0x0) at threadit.c:10
  5    LWP    4          start3 (arg=0x0) at threadit.c:9
  4    LWP    3          start2 (arg=0x0) at threadit.c:8
  3    LWP    2          start1 (arg=0x0) at threadit.c:7
  2    Thread 1 (LWP 1)  0xfef022f5 in __lwp_wait () from /lib/libc.so.1
  1    LWP    1          0xfef022f5 in __lwp_wait () from /lib/libc.so.1


Regards,
Jan


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