This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] infcall.c: Use correct macro
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 7 Oct 2004 11:10:16 +0200
- Subject: [RFA] infcall.c: Use correct macro
- Reply-to: gdb-patches at sources dot redhat dot com
Hi,
the below patch fixes the erroneous usage of a SYMBOL_ macro on a value
type. Ok, to apply?
Corinna
* infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
Index: infcall.c
===================================================================
RCS file: /cvs/src/src/gdb/infcall.c,v
retrieving revision 1.57
diff -u -p -r1.57 infcall.c
--- infcall.c 11 Sep 2004 10:24:47 -0000 1.57
+++ infcall.c 6 Oct 2004 18:19:22 -0000
@@ -307,7 +307,7 @@ call_function_by_hand (struct value *fun
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;
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.