Err, ENOPATCH. I also forgot to mention that this also makes the case of going from: - -pthread or -c_r symbols not loaded to: - -pthread or -c_r symbols loaded when the inferior is already being debugged, behave properly. Not a usual use case, but previously, we were updating inferior_ptid in bsd_uthreads_wait, but not here. On Monday 11 August 2008 15:05:12, Pedro Alves wrote: > Finally, > > Since the core_stratum layer is now registering a thread, layers above > should claim it. This fixes the bsd-uthread target. > > It is meanto to be applies on top of this one, > http://sourceware.org/ml/gdb-patches/2008-08/msg00295.html > > , although it also applies cleanly on top of the patch to make the > bsd-uthread target always register a main thread. > > AIX is still needing update or just some checking, to make it always > register a thread. The thread syncing in aix-thread.c and its use of > ptid_cmp still looks a bit of a mistery to me to propose a fix. :-( > The "failure" mode would be that you'd get two entries for the > same thread, with different ptids. > > There's isn't any other target that can layer a thread_stratum > target over a core_statum. > > OK, when the dependencies are in? Here it is. -- Pedro Alves