From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: <gdb-patches@sourceware.org>
Subject: [RFA 3/5] New patches to support --enable-targets=all for mingw64
Date: Fri, 10 Sep 2010 14:55:00 -0000 [thread overview]
Message-ID: <003c01cb50f0$a440e2c0$ecc2a840$@muller@ics-cnrs.unistra.fr> (raw)
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;
next reply other threads:[~2010-09-10 14:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-10 14:55 Pierre Muller [this message]
[not found] <24599.1625859917$1284127287@news.gmane.org>
2010-09-10 16:13 ` Tom Tromey
2010-09-10 20:15 ` Pierre Muller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='003c01cb50f0$a440e2c0$ecc2a840$@muller@ics-cnrs.unistra.fr' \
--to=pierre.muller@ics-cnrs.unistra.fr \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox