This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] infcall.c: Use correct macro


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]