diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-04-18 19:12:59 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-04-18 19:12:59 +0000 |
commit | f622ad424f70c9af14cbee21e6244b5a408b1f35 (patch) | |
tree | 19f2b7dca5d66a806e9a1b86fd4821050ba0c86b /gdb/infcall.c | |
parent | c4fc7f1b66a96ae423f681cb3f70607f817910a0 (diff) | |
download | gdb-f622ad424f70c9af14cbee21e6244b5a408b1f35.zip gdb-f622ad424f70c9af14cbee21e6244b5a408b1f35.tar.gz gdb-f622ad424f70c9af14cbee21e6244b5a408b1f35.tar.bz2 |
* infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
return value.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r-- | gdb/infcall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c index b10f807..3034bc4 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 |