This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/13700] should allow CLI to switch thread on event
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 16 Feb 2012 18:08:16 +0000
- Subject: [Bug cli/13700] should allow CLI to switch thread on event
- Auto-submitted: auto-generated
- References: <bug-13700-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13700
--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2012-02-16 18:08:16 UTC ---
My scenario was something like: debug 'make' in multi-inferior mode,
run it in the foreground, lots of new inferiors are created and destroyed,
then one of them crashes. Then I got output like this:
[New process 2800]
process 2800 is executing new program: /home/tromey/gnu/archer/Multi/crasher
Program received signal SIGSEGV, Segmentation fault.
0x000000000040047f in main () at crasher.c:5
5 *x = 52;
... but I was actually debugging the original inferior, which is
still running:
(gdb) info inferior
Num Description Executable
7 process 2800 /home/tromey/gnu/archer/Multi/crasher
* 1 process 2792 /usr/bin/make
I just found this very surprising. In fact the first time I didn't realize
what had happened and I assumed there was a gdb bug, because I saw a crash
(which visually is indistinguishable from the familiar single-inferior
single-thread case) and tried to bt:
(gdb) bt
Target is executing.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.