mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-24 11:30:50 +00:00
* infcall.c (call_function_by_hand): Check for function pointer
types.
This commit is contained in:
parent
a4697170c7
commit
4c85081011
@ -1,3 +1,8 @@
|
||||
2006-09-10 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* infcall.c (call_function_by_hand): Check for function pointer
|
||||
types.
|
||||
|
||||
2006-09-10 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* m68k-tdep.c (m68k_analyze_register_saves): Fix decoding of
|
||||
|
@ -336,6 +336,9 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
|
||||
struct cleanup *caller_regcache_cleanup;
|
||||
struct frame_id dummy_id;
|
||||
|
||||
if (TYPE_CODE (ftype) == TYPE_CODE_PTR)
|
||||
ftype = check_typedef (TYPE_TARGET_TYPE (ftype));
|
||||
|
||||
if (!target_has_execution)
|
||||
noprocess ();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user