From Nick Kelsey <nickk@ubicom.com>:
authorDaniel Jacobowitz <drow@false.org>
Sun, 7 Sep 2003 15:15:01 +0000 (15:15 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sun, 7 Sep 2003 15:15:01 +0000 (15:15 +0000)
* infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
when the stop PC is at the beginning of a function also.

gdb/ChangeLog
gdb/infrun.c

index 418a2a5e01599cd81310bd4b62c4852289c924a0..54b38292f3a3889c80d13f56afd27f3c546f1d56 100644 (file)
@@ -1,3 +1,9 @@
+2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
+
+       From Nick Kelsey <nickk@ubicom.com>:
+       * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
+       when the stop PC is at the beginning of a function also.
+
 2003-09-06  Daniel Jacobowitz  <drow@mvista.com>
 
        * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
index b2e371eebb04b70f33ba5f7ff64bec6d0c8aa69d..01460efa1f5557c2699e9eaee78e197e86c65678 100644 (file)
@@ -2446,9 +2446,9 @@ process_event_stop_test:
       return;
     }
 
-  if (stop_pc == ecs->stop_func_start  /* Quick test */
-      || (in_prologue (stop_pc, ecs->stop_func_start) &&
-         !IN_SOLIB_RETURN_TRAMPOLINE (stop_pc, ecs->stop_func_name))
+  if (((stop_pc == ecs->stop_func_start        /* Quick test */
+       || in_prologue (stop_pc, ecs->stop_func_start))
+       && !IN_SOLIB_RETURN_TRAMPOLINE (stop_pc, ecs->stop_func_name))
       || IN_SOLIB_CALL_TRAMPOLINE (stop_pc, ecs->stop_func_name)
       || ecs->stop_func_name == 0)
     {