]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2008-10-06 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Mon, 6 Oct 2008 23:06:30 +0000 (23:06 +0000)
committerMichael Snyder <msnyder@vmware.com>
Mon, 6 Oct 2008 23:06:30 +0000 (23:06 +0000)
        * infrun.c (handle_inferior_event): Formatting, spelling fix.

* infrun.c (handle_inferior_event): Add special case for
"next" in reverse.

gdb/ChangeLog
gdb/infrun.c

index c90d9e813a3797c15337c6d488078ae208bb26e8..f69dad952736dcd9833e6bacd205e88f03a94a6f 100644 (file)
@@ -1,3 +1,10 @@
+2008-10-06  Michael Snyder  <msnyder@vmware.com>
+
+        * infrun.c (handle_inferior_event): Formatting, spelling fix.
+
+       * infrun.c (handle_inferior_event): Add special case for
+       "next" in reverse.
+
 2008-10-04  Hui Zhu  <teawater@gmail.com>
 
        Change from "to_prepare_to_store" to "to_store_registers".
index 1f85212c102686f2e96cd8f36a76929cf736a6eb..b5c89bc452fd6fcb26f9a46e791a1539c17c998f 100644 (file)
@@ -2884,8 +2884,8 @@ infrun: BPSTAT_WHAT_SET_LONGJMP_RESUME (!gdbarch_get_longjmp_target)\n");
            keep_going (ecs);
            return;
          }
-       if (stop_pc == ecs->stop_func_start &&
-           target_get_execution_direction () == EXEC_REVERSE)
+       if (stop_pc == ecs->stop_func_start
+           && target_get_execution_direction () == EXEC_REVERSE)
          {
            /* We are stepping over a function call in reverse, and
               just hit the step-resume breakpoint at the start
@@ -3065,11 +3065,11 @@ infrun: BPSTAT_WHAT_SET_LONGJMP_RESUME (!gdbarch_get_longjmp_target)\n");
                            paddr_nz (ecs->event_thread->step_range_end));
 
       /* When stepping backward, stop at beginning of line range
-        (unles it's the function entry point, in which case
+        (unless it's the function entry point, in which case
         keep going back to the call point).  */
-      if (stop_pc == ecs->event_thread->step_range_start &&
-         stop_pc != ecs->stop_func_start &&
-         target_get_execution_direction () == EXEC_REVERSE)
+      if (stop_pc == ecs->event_thread->step_range_start
+         && stop_pc != ecs->stop_func_start
+         && target_get_execution_direction () == EXEC_REVERSE)
        {
          ecs->event_thread->stop_step = 1;
          print_stop_reason (END_STEPPING_RANGE, 0);
@@ -3138,8 +3138,9 @@ infrun: BPSTAT_WHAT_SET_LONGJMP_RESUME (!gdbarch_get_longjmp_target)\n");
      previous frame must have valid frame IDs.  */
   if (!frame_id_eq (get_frame_id (get_current_frame ()),
                    ecs->event_thread->step_frame_id)
-      && frame_id_eq (frame_unwind_id (get_current_frame ()),
-                     ecs->event_thread->step_frame_id))
+      && (frame_id_eq (frame_unwind_id (get_current_frame ()),
+                      ecs->event_thread->step_frame_id)
+         || target_get_execution_direction () == EXEC_REVERSE))
     {
       CORE_ADDR real_stop_pc;