This is the mail archive of the gdb@sources.redhat.com 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: gcore and nptl threads on linux


Andrew Cagney wrote:

I would think the null_ptid would serve in such a case.



I guess the issue is that we should be dumping the set of LWPs to the generated core file, not the set of threads. It seems to me like GDB should be aware of the list of LWPs, and it shouldn't be hidden in each individual thread package.


You mean add them to the `struct thread_info' list? Why not (ignoring technical realities for the moment :-)?


How about a second list made up of thread_info structs for lwps? That way, the current thread routines wouldn't have to constantly validate whether the list item was a thread or lwp. This also would simplify the numbering system. There could be equivalent lwp routines for accessing the list (e.g. iterate_over_lwps() ).

-- Jeff J.







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