This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/18225] New: step past a breakpoint with signal to deliver but handler set to SIG_IGN
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 09 Apr 2015 11:26:05 +0000
- Subject: [Bug gdb/18225] New: step past a breakpoint with signal to deliver but handler set to SIG_IGN
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=18225
Bug ID: 18225
Summary: step past a breakpoint with signal to deliver but
handler set to SIG_IGN
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: palves at redhat dot com
GDB gets this wrong with displaced stepping, and the program doesn't make
progress:
~~~
void
foo (void)
{
}
int
main (void)
{
signal (SIGUSR1, SIG_IGN);
foo ();
return 0;
}
~~~
...
(gdb) set displaced-stepping on
...
(gdb) continue
Continuing.
Breakpoint 5, foo () ...
26 }
(gdb) signal SIGUSR1
Continuing with signal SIGUSR1.
Breakpoint 5, foo () ...
26 }
(gdb) signal SIGUSR1
Continuing with signal SIGUSR1.
Breakpoint 5, foo () at ...
26 }
(gdb)
--
You are receiving this mail because:
You are on the CC list for the bug.