aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-04-01 14:24:54 +0000
committerPedro Alves <palves@redhat.com>2015-04-01 14:29:05 +0100
commit1ac806b8a7d0c09a0052751262f37336fb06bf6f (patch)
tree6c38c3a4472e72d814ab91deff0329dc619225e5 /gdb
parent2ee52aa4283145a0f9417986b2f3d7f91e61b1b0 (diff)
downloadgdb-1ac806b8a7d0c09a0052751262f37336fb06bf6f.zip
gdb-1ac806b8a7d0c09a0052751262f37336fb06bf6f.tar.gz
gdb-1ac806b8a7d0c09a0052751262f37336fb06bf6f.tar.bz2
Use do_target_resume when stepping past permanent breakpoint too
We can use the recently added do_target_resume do simplify the code a bit here. Tested on x86_64 Fedora 20. gdb/ChangeLog: 2015-04-01 Pedro Alves <palves@redhat.com> * infrun.c (resume) <step past permanent breakpoint>: Use do_target_resume.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infrun.c9
2 files changed, 7 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 838c685..5353e34 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2015-04-01 Pedro Alves <palves@redhat.com>
+ * infrun.c (resume) <step past permanent breakpoint>: Use
+ do_target_resume.
+
+2015-04-01 Pedro Alves <palves@redhat.com>
+
* linux-nat.c (linux_handle_extended_wait): Always call set_running.
2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 4114246..d7c250e 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -2184,17 +2184,12 @@ resume (enum gdb_signal sig)
thread advanced also" branch to be taken. IOW, we
don't want this thread to step further from PC
(overstep). */
+ gdb_assert (!step_over_info_valid_p ());
insert_single_step_breakpoint (gdbarch, aspace, pc);
insert_breakpoints ();
- tp->suspend.stop_signal = GDB_SIGNAL_0;
- /* We're continuing with all breakpoints inserted. It's
- safe to let the target bypass signals. */
- target_pass_signals ((int) GDB_SIGNAL_LAST, signal_pass);
- /* ... and safe to let other threads run, according to
- schedlock. */
resume_ptid = user_visible_resume_ptid (user_step);
- target_resume (resume_ptid, 0, GDB_SIGNAL_0);
+ do_target_resume (resume_ptid, 0, GDB_SIGNAL_0);
discard_cleanups (old_cleanups);
return;
}