diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1994-01-19 20:45:30 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1994-01-19 20:45:30 +0000 |
commit | f1de67d323b4f897fdb70efd870e6d9ba0cee21b (patch) | |
tree | e7806f3c81c50b454ce0099e4bb056d981453a62 /gdb/infrun.c | |
parent | 59502c19ad5401de4d4571a10032eb5a3dd786c3 (diff) | |
download | gdb-f1de67d323b4f897fdb70efd870e6d9ba0cee21b.zip gdb-f1de67d323b4f897fdb70efd870e6d9ba0cee21b.tar.gz gdb-f1de67d323b4f897fdb70efd870e6d9ba0cee21b.tar.bz2 |
* infrun.c (normal_stop): Set stop_pc after popping the dummy frame
in case execution was stopped in the called function.
* stack.c (print_frame_info, frame_info): If backtracing through
a call dummy, handle the starting source line number on a line
boundary like backtracing through sigtramp.
* sparc-tdep.c (sparc_frame_find_saved_regs): Get frame address
for call dummy frame right. Remove old test for dummy frame,
it has been unused at least since gdb-3.5.
* sparc-tdep.c (sparc_push_dummy_frame): Set return address register
of the dummy frame.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index f831f5a..9549bce 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1381,6 +1381,10 @@ Further execution is probably impossible.\n"); POP_FRAME ends with a setting of the current frame, so we can use that next. */ POP_FRAME; + /* Set stop_pc to what it was before we called the function. Can't rely + on restore_inferior_status because that only gets called if we don't + stop in the called function. */ + stop_pc = read_pc(); select_frame (get_current_frame (), 0); } } |