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 gdb/18225] New: step past a breakpoint with signal to deliver but handler set to SIG_IGN


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.


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