gdb problem in multi-threaded app
Having a problem with gdb on fedora core 2. gdb version:
(gdb) show version
GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu".
Problem is that I am trying to step through a function. The program is multi-threaded. As I am stepping, gdb automatically switches to some other thread. If I do:
(gdb) thread 33
or whatever to switch back to the thread that I am trying to debug, it has continued along, i.e. it isn't at the same line (or even the same function) where I was left previously.
Isn't there some way to have the debugger NOT switch threads on me?? I know that's probably useful for some people some of the time, but for the most part it's just ..........ing annoying. From my perspective anyway.