This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: corelow and threads question
- From: Daniel Jacobowitz <drow at false dot org>
- To: Aleksandar Ristovski <aristovski at qnx dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 5 Jun 2009 15:03:39 -0400
- Subject: Re: corelow and threads question
- References: <h0bplu$o36$1@ger.gmane.org>
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