mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-28 14:30:48 +00:00
* infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
return value.
This commit is contained in:
parent
c4fc7f1b66
commit
f622ad424f
@ -1,5 +1,8 @@
|
|||||||
2004-04-18 Mark Kettenis <kettenis@gnu.org>
|
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>:
|
Based on a patch from Brian Ford <ford@vss.fsi.com>:
|
||||||
* i386-tdep.c: Correct register numbering scheme comments
|
* i386-tdep.c: Correct register numbering scheme comments
|
||||||
throughout.
|
throughout.
|
||||||
|
@ -206,7 +206,7 @@ find_function_addr (struct value *function, struct type **retval_type)
|
|||||||
error ("Invalid data type for function to be called.");
|
error ("Invalid data type for function to be called.");
|
||||||
|
|
||||||
*retval_type = value_type;
|
*retval_type = value_type;
|
||||||
return funaddr;
|
return funaddr + FUNCTION_START_OFFSET;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Call breakpoint_auto_delete on the current contents of the bpstat
|
/* Call breakpoint_auto_delete on the current contents of the bpstat
|
||||||
|
Loading…
Reference in New Issue
Block a user