* [pushed] Fix switch_back_to_stepped_thread comment references
@ 2015-03-24 19:06 Pedro Alves
0 siblings, 0 replies; only message in thread
From: Pedro Alves @ 2015-03-24 19:06 UTC (permalink / raw)
To: gdb-patches
Whoops, switch_back_to_stepping doesn't exist...
gdb/
2015-03-24 Pedro Alves <palves@redhat.com>
* infrun.c (resume, proceed): Mention
switch_back_to_stepped_thread, not switch_back_to_stepping.
---
gdb/ChangeLog | 5 +++++
gdb/infrun.c | 8 ++++----
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a7d95f6..2cd79a5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2015-03-24 Pedro Alves <palves@redhat.com>
+ * infrun.c (resume, proceed): Mention
+ switch_back_to_stepped_thread, not switch_back_to_stepping.
+
+2015-03-24 Pedro Alves <palves@redhat.com>
+
* infrun.c (user_visible_resume_ptid): Rewrite going from
most-locked to unlocked instead of the opposite. Move comment ...
* infrun.h (user_visible_resume_ptid): ... here.
diff --git a/gdb/infrun.c b/gdb/infrun.c
index ce6fb1a..4114246 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -2180,9 +2180,9 @@ resume (enum gdb_signal sig)
reported to handle_inferior_event. Set a breakpoint
at the current PC, and run to it. Don't update
prev_pc, because if we end in
- switch_back_to_stepping, we want the "expected thread
- advanced also" branch to be taken. IOW, we don't
- want this thread to step further from PC
+ switch_back_to_stepped_thread, we want the "expected
+ thread advanced also" branch to be taken. IOW, we
+ don't want this thread to step further from PC
(overstep). */
insert_single_step_breakpoint (gdbarch, aspace, pc);
insert_breakpoints ();
@@ -2668,7 +2668,7 @@ proceed (CORE_ADDR addr, enum gdb_signal siggnal)
target_pid_to_str (step_over->ptid));
/* Store the prev_pc for the stepping thread too, needed by
- switch_back_to_stepping thread. */
+ switch_back_to_stepped_thread. */
tp->prev_pc = regcache_read_pc (get_current_regcache ());
switch_to_thread (step_over->ptid);
tp = step_over;
--
1.9.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-24 19:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-24 19:06 [pushed] Fix switch_back_to_stepped_thread comment references Pedro Alves
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).