Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA 3/5] New patches to support --enable-targets=all for mingw64
@ 2010-09-10 14:55 Pierre Muller
  0 siblings, 0 replies; 3+ messages in thread
From: Pierre Muller @ 2010-09-10 14:55 UTC (permalink / raw)
  To: gdb-patches

  I tried to compile GDB with
--enable-targets=all for x86_64-w64-mingw32
target.
  As 'long' type is 4-byte while pointer type is 8-byte,
this target is quite sensitive to so 'dirty' code
lying around like casting 'long' or 'unsigned long' to pointers...

  I had to fix several sources to be able to 
successfully compile GDB with those configuration options.


3) Change some types from 'long' to 'CORE_ADDRESS',
if they could carry pointers.
 in coffread.c


Pierre Muller
Pascal language support maintainer for GDB

2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>

	* coffread.c (struct coff_symbol): Change c_value type from `long' to
	`CORE_ADDRESS' as it might contain target addresses.

Index: src/gdb/coffread.c
===================================================================
RCS file: /cvs/src/src/gdb/coffread.c,v
retrieving revision 1.109
diff -u -p -r1.109 coffread.c
--- src/gdb/coffread.c	9 Aug 2010 19:42:46 -0000	1.109
+++ src/gdb/coffread.c	9 Sep 2010 16:39:57 -0000
@@ -131,7 +131,7 @@ struct coff_symbol
     char *c_name;
     int c_symnum;		/* symbol number of this entry */
     int c_naux;			/* 0 if syment only, 1 if syment + auxent, etc */
-    long c_value;
+    CORE_ADDR c_value;
     int c_sclass;
     int c_secnum;
     unsigned int c_type;



^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <24599.1625859917$1284127287@news.gmane.org>]

end of thread, other threads:[~2010-09-10 16:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-10 14:55 [RFA 3/5] New patches to support --enable-targets=all for mingw64 Pierre Muller
     [not found] <24599.1625859917$1284127287@news.gmane.org>
2010-09-10 16:13 ` Tom Tromey
2010-09-10 20:15   ` Pierre Muller

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