When reverse-stepping, only insert a resume breakpoint at ecs->stop_func_start
authorMarkus Metzger <mmetzger@sourceware.org>
Wed, 18 Sep 2013 13:02:42 +0000 (13:02 +0000)
committerMarkus Metzger <mmetzger@sourceware.org>
Wed, 18 Sep 2013 13:02:42 +0000 (13:02 +0000)
if the function start is known.  Otherwise, keep single-stepping.

gdb/ChangeLog
gdb/infrun.c

index 5ae9a10775203849e59b8ee7b8c52898777f445e..49660b4dc19a0391c240887599841192fc25eead 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * infrun.c (handle_inferior_event): Check if we know the
+       function start address before setting a resume breakpoint.
+
 2013-09-18  Pedro Alves  <palves@redhat.com>
 
        * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
index 9e4323c72e2c5111ff6597224f856389384f0732..8952b23a96a7c32da5b3235fe13440482a74bb82 100644 (file)
@@ -4943,7 +4943,7 @@ process_event_stop_test:
                 or stepped back out of a signal handler to the first instruction
                 of the function.  Just keep going, which will single-step back
                 to the caller.  */
-             if (ecs->stop_func_start != stop_pc)
+             if (ecs->stop_func_start != stop_pc && ecs->stop_func_start != 0)
                {
                  struct symtab_and_line sr_sal;