aboutsummaryrefslogtreecommitdiff
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
commitb6c25a5605df3ad52f3e514a3c401dcdad4e6d89 (patch)
treeb93b8e876f7e845ab872e6a9ce59828c866a730e
parent864274b0e90535a7228860f234b51d465c16d9bc (diff)
downloadgdb-b6c25a5605df3ad52f3e514a3c401dcdad4e6d89.zip
gdb-b6c25a5605df3ad52f3e514a3c401dcdad4e6d89.tar.gz
gdb-b6c25a5605df3ad52f3e514a3c401dcdad4e6d89.tar.bz2
* infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/infcall.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6a0ba78..3260805 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2004-10-08 Corinna Vinschen <vinschen@redhat.com>
+
+ * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
+
2004-10-08 Nick Roberts <nickrob@snap.net.nz>
* MAINTAINERS: Update e-mail address.
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 53bcffd..ec4f11a 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;