* infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
authorMark Kettenis <kettenis@gnu.org>
Sun, 18 Apr 2004 19:12:59 +0000 (19:12 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 18 Apr 2004 19:12:59 +0000 (19:12 +0000)
return value.

gdb/ChangeLog
gdb/infcall.c

index 2d92ef91dd2f547e57bc52941ae4124990341b0d..6bc0346f73949981b032009c4843ba03602f7ad0 100644 (file)
@@ -1,5 +1,8 @@
 2004-04-18  Mark Kettenis  <kettenis@gnu.org>
 
+       * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
+       return value.
+
        Based on a patch from Brian Ford <ford@vss.fsi.com>:
        * i386-tdep.c: Correct register numbering scheme comments
        throughout.
index b10f8071daf5262ceb0fdf00cbe408bfcef8d799..3034bc42bca492225e79ff4ca46fff69f9039967 100644 (file)
@@ -206,7 +206,7 @@ find_function_addr (struct value *function, struct type **retval_type)
     error ("Invalid data type for function to be called.");
 
   *retval_type = value_type;
-  return funaddr;
+  return funaddr + FUNCTION_START_OFFSET;
 }
 
 /* Call breakpoint_auto_delete on the current contents of the bpstat