aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-08-04 15:42:43 +0000
committerAndrew Cagney <cagney@redhat.com>2003-08-04 15:42:43 +0000
commit57bfe1774eca9ff4b96595df28544f61c1574a5a (patch)
treed67ff408316c79beb0b92a81a7d5d08b153ad0f4 /gdb
parent43ac988152628f2642cde224a7eba4677a2b71fd (diff)
downloadgdb-57bfe1774eca9ff4b96595df28544f61c1574a5a.zip
gdb-57bfe1774eca9ff4b96595df28544f61c1574a5a.tar.gz
gdb-57bfe1774eca9ff4b96595df28544f61c1574a5a.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/ChangeLog4
-rw-r--r--gdb/frame.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index deb7373..de60e7d 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-02 Andrew Cagney <cagney@redhat.com>
* config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
diff --git a/gdb/frame.c b/gdb/frame.c
index 9b95e9c..2b54ed7 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",