diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-03-30 16:37:13 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-03-30 16:37:13 +0000 |
commit | 7abfe01489d2422ae0ae519e0e9aa1ec0cc3c288 (patch) | |
tree | 8041c183051b014ad47063adfb9dd827142afa7f /gdb/infrun.c | |
parent | 0ec9a092fd18d6b1c38ae330194bf90534a9b681 (diff) | |
download | gdb-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.c | 6 |
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) |