This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/rfc] Simplify step-over-signal, fix XFAIL: next to 2nd alarm(1) (probably kernel bug)
- From: Mark Kettenis <kettenis at chello dot nl>
- To: cagney at gnu dot org
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sun, 9 May 2004 23:26:04 +0200 (CEST)
- Subject: [patch/rfc] Simplify step-over-signal, fix XFAIL: next to 2nd alarm(1) (probably kernel bug)
Date: Sun, 09 May 2004 15:48:40 -0400
From: Andrew Cagney <cagney@gnu.org>
Index: ChangeLog
2004-05-08 Andrew Cagney <cagney@redhat.com>
* infrun.c (check_sigtramp2): Delete function.
(handle_inferior_event): When single stepping, and taking a
signal, set a breakpoint at the signal return address. Delete
redundant calls to check_sigtramp2.
(insert_step_resume_breakpoint): New function.
(through_sigtramp_breakpoint, handle_inferior_event)
(follow_exec, wait_for_inferior, fetch_inferior_event)
(currently_stepping, keep_going): Delete most uses of
through_sigtramp_breakpoint, not that it should be deleted.
(delete_breakpoint_current_contents): Delete function.
This looks good to me. I tested it on i386-unknown-freebsd4.7 and
x86_64-unknown-openbsd3.5, and I see the same improvements as you see
on GNU/Linux.
Mark