Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] infcall.c: Use correct macro
@ 2004-10-07  9:09 Corinna Vinschen
  2004-10-07 18:39 ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Corinna Vinschen @ 2004-10-07  9:09 UTC (permalink / raw)
  To: gdb-patches

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-10-08  8:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-07  9:09 [RFA] infcall.c: Use correct macro Corinna Vinschen
2004-10-07 18:39 ` Andrew Cagney
2004-10-08  8:16   ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox