aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-03-24 14:24:54 +0000
committerPedro Alves <palves@redhat.com>2015-03-24 19:01:05 +0000
commit44a1ee517365cd120f0338c1f4dc5a85273d4e4b (patch)
tree9d4e3dd20740b49d582ea8f693ce360cff284b2d /gdb/infrun.c
parentf3263aa47ec109871a124a1a2d5370e42a907690 (diff)
downloadgdb-44a1ee517365cd120f0338c1f4dc5a85273d4e4b.zip
gdb-44a1ee517365cd120f0338c1f4dc5a85273d4e4b.tar.gz
gdb-44a1ee517365cd120f0338c1f4dc5a85273d4e4b.tar.bz2
Fix switch_back_to_stepped_thread comment references
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.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c8
1 files changed, 4 insertions, 4 deletions
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;