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: "there is always a thread"



It depends upon the stratum.  dummy_stratum and file_stratum (and
download_stratum?) will have no thread because nothing's running yet.

I should have earlier posted that a target has 0:N threads.


A non-threaded app having a single thread corresponding to the main process.


For the other strata, this should be (made to be) true.

A fallout from this change may be that the process_stratum and
thread_stratum can be merged.

It depends on what you mean by merge.


There would still be a thread layer that abstracted the POSIX user threads and below it a process layer that abstracted the more physical LWPs. However, the existing assumption that there was only one thread stratum and and only it could have threads would be removed.

Andrew



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