This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Enhancement - show old and new thread info when switching during debugging
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: pfee at talk21 dot com
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 30 Jul 2011 14:39:45 +0200
- Subject: Re: Enhancement - show old and new thread info when switching during debugging
- References: <1311947955.89527.YahooMailRC@web86708.mail.ird.yahoo.com>
On Fri, 29 Jul 2011 15:59:15 +0200, pfee@talk21.com wrote:
> This is useful if the switch was not intended
If not obvious maybe in such case maybe you do not want the switching.
(gdb) set target-async on
(gdb) set non-stop on
(gdb) run
[...]
Breakpoint 1, start (arg=0x0) at /home/jkratoch/t/threadit2.c:15
15 sleep (100);
(gdb) info threads
2 Thread 0x7ffff7fd2700 (LWP 32656) start (arg=0x0) at /home/jkratoch/t/threadit2.c:15
* 1 Thread 0x7ffff7fd3720 (LWP 32653) (running)
GDB stayed at thread 1, thread 2 was stopped by that Breakpoint 1.
But sure non-stop mode is a bit different behavior from the all-stop mode.
Regards,
Jan