This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: problem switching between threads
- To: jtc at redback dot com
- Subject: Re: problem switching between threads
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 19 May 2000 11:03:14 +1000
- CC: gdb at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <5mg0ri6xcg.fsf@jtc.redback.com>
"J.T. Conklin" wrote:
>
> One of my back burner tasks is to adapt our vxWorks/WDB target to use
> GDB's own thread infrastructure instead of maintaining its own thread
> list, etc. Earlier today I added code to add each thread to GDB's
> thread list while I was building my the one used by the WDB target.
> This did not work as well as I expected.
>
> The problem is that switch_to_thread() does not resume the currently
> running thread nor suspend the thread being switched to. Things get
> confused as a result. The old task sits around doing nothing, while
> GDB thinks the new task is suspended when it may be executing.
>
> Has anyone else encountered this, or is GDB's thread support only used
> for targets where all threads stop when one is under debug?
J.T.
I believe your analysis is correct.
Andrew