This is the mail archive of the gdb@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: corelow and threads question


On Fri, Jun 05, 2009 at 02:54:54PM -0400, Aleksandar Ristovski wrote:
> Hello,
>
> Since: http://sourceware.org/ml/gdb-patches/2009-06/msg00101.html  
> diverged from original intention, I would like to ask a question regarding 
> core_ops and possible solution to my problem.
>
> Right now, we are treating core_ops somewhat specially since we add 
> threads before calling target_find_new_threads in core_open; but why don't 
> we let target_find_new_threads add the threads instead of adding them in 
> core_open?
>
> Wouldn't that actually be the right solution?

I think the version you have now will cause "info threads" to
duplicate threads every time you type it.  The current version
reflects that threads are only added when the target is opened.

That said, I think either way is fine - but you'll have to detect
already-added threads.

-- 
Daniel Jacobowitz
CodeSourcery


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