summaryrefslogtreecommitdiff
path: root/gdb/infcall.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-10-08 08:15:56 +0000
committerCorinna Vinschen <corinna@vinschen.de>2004-10-08 08:15:56 +0000
commitf0100faec44a0f9433558abb51374e0e4f66ae4f (patch)
tree72847bdfc142377e56acb302112d2d5f24138759 /gdb/infcall.c
parente5100ab1582d48f5741bd1bc23d1d1b4cc5de3bd (diff)
downloadgdb-f0100faec44a0f9433558abb51374e0e4f66ae4f.tar.gz
* infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r--gdb/infcall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 53bcffd3ae7..ec4f11a0136 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -307,7 +307,7 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
CORE_ADDR funaddr;
int using_gcc; /* Set to version of gcc in use, or zero if not gcc */
CORE_ADDR real_pc;
- struct type *ftype = check_typedef (SYMBOL_TYPE (function));
+ struct type *ftype = check_typedef (VALUE_TYPE (function));
CORE_ADDR bp_addr;
struct regcache *caller_regcache;
struct cleanup *caller_regcache_cleanup;