summaryrefslogtreecommitdiff
path: root/gdb/infcall.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-04-18 19:12:59 +0000
committerMark Kettenis <kettenis@gnu.org>2004-04-18 19:12:59 +0000
commit4d1c470e8fcf264c73a822381e66e82ef1098a78 (patch)
treea26cdd29bddc2028fc186db5eef585cecb4a3fb4 /gdb/infcall.c
parent23284d6eb217be4f018b130fab710403d8fd0c95 (diff)
downloadgdb-4d1c470e8fcf264c73a822381e66e82ef1098a78.tar.gz
* infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
return value.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r--gdb/infcall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c
index b10f8071daf..3034bc42bca 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -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