2003-08-04 Andrew Cagney <cagney@redhat.com>

* frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
This commit is contained in:
Andrew Cagney 2003-08-04 15:42:43 +00:00
parent 43ac988152
commit 57bfe1774e
2 changed files with 8 additions and 1 deletions

View File

@ -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-02 Andrew Cagney <cagney@redhat.com>
* config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,

View File

@ -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",