]> Git Repo - binutils.git/blobdiff - gdb/frame.c
2003-08-04 Andrew Cagney <[email protected]>
[binutils.git] / gdb / frame.c
index 9b95e9caec19f9295de55ab16281de6cf1cfc574..2b54ed78d5a16a9e743f71d47a9d9fc1e7e2f161 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",
This page took 0.024521 seconds and 4 git commands to generate.