From: Mark Kettenis Date: Sun, 18 Apr 2004 19:12:59 +0000 (+0000) Subject: * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to X-Git-Tag: gprof-pre-ansify-2004-05-26~470 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f622ad424f70c9af14cbee21e6244b5a408b1f35;p=external%2Fbinutils.git * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to return value. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2d92ef9..6bc0346 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2004-04-18 Mark Kettenis + * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to + return value. + Based on a patch from Brian Ford : * i386-tdep.c: Correct register numbering scheme comments throughout. 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