]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2003-08-04 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Mon, 4 Aug 2003 15:55:07 +0000 (15:55 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 4 Aug 2003 15:55:07 +0000 (15:55 +0000)
* frame.c (frame_func_unwind): Use frame_unwind_address_in_block.

gdb/ChangeLog
gdb/frame.c

index f614c86634cf97860a4540089891304b6c7d282f..b8d3d86919a5ca46a65c294658d73e1baceb1a34 100644 (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-03  Daniel Jacobowitz  <drow@mvista.com>
 
        PR c++/1267
index 58c0834cd77f153e2e7b614bb7c0020fa5f90514..86c36a38ad646ca52b3ccbc32f5a4ddb311a3a66 100644 (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",