From 4c8508101163caf4d851d20d96dca2d77635b382 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sun, 10 Sep 2006 15:44:36 +0000 Subject: * infcall.c (call_function_by_hand): Check for function pointer types. --- gdb/infcall.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/infcall.c') diff --git a/gdb/infcall.c b/gdb/infcall.c index 3a1ad6a..9f12896 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -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 (); -- cgit v1.1