aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-03-30 16:37:13 +0000
committerDaniel Jacobowitz <drow@false.org>2006-03-30 16:37:13 +0000
commit7abfe01489d2422ae0ae519e0e9aa1ec0cc3c288 (patch)
tree8041c183051b014ad47063adfb9dd827142afa7f /gdb/infrun.c
parent0ec9a092fd18d6b1c38ae330194bf90534a9b681 (diff)
downloadgdb-7abfe01489d2422ae0ae519e0e9aa1ec0cc3c288.zip
gdb-7abfe01489d2422ae0ae519e0e9aa1ec0cc3c288.tar.gz
gdb-7abfe01489d2422ae0ae519e0e9aa1ec0cc3c288.tar.bz2
* frame.h (set_current_sal_from_frame): New prototype.
* stack.c (set_current_sal_from_frame): Make global. * infrun.c (normal_stop): Call set_current_sal_from_frame.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 47fbe09..bccca0d 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3044,6 +3044,12 @@ Further execution is probably impossible.\n"));
target_terminal_ours ();
+ /* Set the current source location. This will also happen if we
+ display the frame below, but the current SAL will be incorrect
+ during a user hook-stop function. */
+ if (target_has_stack && !stop_stack_dummy)
+ set_current_sal_from_frame (get_current_frame (), 1);
+
/* Look up the hook_stop and run it (CLI internally handles problem
of stop_command's pre-hook not existing). */
if (stop_command)