diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-08-04 15:55:07 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-08-04 15:55:07 +0000 |
commit | 60981e27a34b674b1c706196c67f1b8b063694e2 (patch) | |
tree | f5e90e3e4529ce62956a81567e80bd98026db26a /gdb | |
parent | 44f160bbd027e93d89dbde115fac71e85827009d (diff) | |
download | gdb-60981e27a34b674b1c706196c67f1b8b063694e2.zip gdb-60981e27a34b674b1c706196c67f1b8b063694e2.tar.gz gdb-60981e27a34b674b1c706196c67f1b8b063694e2.tar.bz2 |
2003-08-04 Andrew Cagney <cagney@redhat.com>
* frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/frame.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f614c86..b8d3d86 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2003-08-04 Andrew Cagney <cagney@redhat.com> + + * frame.c (frame_func_unwind): Use frame_unwind_address_in_block. + 2003-08-03 Daniel Jacobowitz <drow@mvista.com> PR c++/1267 diff --git a/gdb/frame.c b/gdb/frame.c index 58c0834..86c36a3 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -421,8 +421,11 @@ frame_func_unwind (struct frame_info *fi) { if (!fi->prev_func.p) { + /* Make certain that this, and not the adjacent, function is + found. */ + CORE_ADDR addr_in_block = frame_unwind_address_in_block (fi); fi->prev_func.p = 1; - fi->prev_func.addr = get_pc_function_start (frame_pc_unwind (fi)); + fi->prev_func.addr = get_pc_function_start (addr_in_block); if (frame_debug) fprintf_unfiltered (gdb_stdlog, "{ frame_func_unwind (fi=%d) -> 0x%s }\n", |