public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug remote/16126] New: GDB/GDBserver lose signal when reconnecting
@ 2013-11-06 11:32 palves at redhat dot com
  0 siblings, 0 replies; only message in thread
From: palves at redhat dot com @ 2013-11-06 11:32 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-11-06 11:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-06 11:32 [Bug remote/16126] New: GDB/GDBserver lose signal when reconnecting palves at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).