This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug cli/13700] should allow CLI to switch thread on event


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]