This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug remote/16126] New: GDB/GDBserver lose signal when reconnecting
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 06 Nov 2013 11:32:18 +0000
- Subject: [Bug remote/16126] New: GDB/GDBserver lose signal when reconnecting
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16126
Bug ID: 16126
Summary: GDB/GDBserver lose signal when reconnecting
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: remote
Assignee: unassigned at sourceware dot org
Reporter: palves at redhat dot com
If you disconnect from GDBserver while the program is stopped at a signal
(or gdb crashes), and then connect back, GDB/GDBserver lose the signal.
Without reconnecting:
(gdb) c
Continuing.
Program received signal SIGUSR1, User defined signal 1.
main () at threads.c:35
35 long i = 0;
(gdb) info program
Debugging a target over a serial line.
Program stopped at 0x4006e4.
It stopped with signal SIGUSR1, User defined signal 1.
(gdb) c
Continuing.
Program terminated with signal SIGUSR1, User defined signal 1.
The program no longer exists.
(gdb)
==============================
Reconnecting:
(gdb) c
Continuing.
Program received signal SIGUSR1, User defined signal 1.
0x00000034cf408e60 in pthread_join (threadid=140737353922304,
thread_return=0x7fffffffd8b8) at pthread_join.c:93
93 lll_wait_tid (pd->tid);
(gdb) info program
Debugging a target over a serial line.
Program stopped at 0x34cf408e60.
It stopped with signal SIGUSR1, User defined signal 1.
(gdb) disconnect
Ending remote debugging.
(gdb) tar remote :9999
Remote debugging using :9999
Reading symbols from /lib64/libpthread.so.0...Reading symbols from
/usr/lib/debug/lib64/libpthread-2.15.so.debug...done.
...
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x00000034cf408e60 in pthread_join (threadid=140737353922304,
thread_return=0x7fffffffd8b8) at pthread_join.c:93
93 lll_wait_tid (pd->tid);
(gdb) info program
Debugging a target over a serial line.
Program stopped at 0x34cf408e60.
It stopped with signal SIGTRAP, Trace/breakpoint trap.
(gdb) c
Continuing.
[Inferior 1 (process 25328) exited normally]
--
You are receiving this mail because:
You are on the CC list for the bug.