This is the mail archive of the
mailing list for the GDB project.
Fwd: sim bug
- From: Mike Stump <mikestump at comcast dot net>
- To: gdb-patches at sourceware dot org
- Date: Fri, 5 Aug 2011 17:03:04 -0700
- Subject: Fwd: sim bug
- References: <B6D2FA1E-C685-4AED-B820-B87946BA4A5B@comcast.net>
I originally sent this onto the binutils people... they directed me here.
I found a nasty sim bug:
--- binutils/binutils/sim/common/sim-load.c (revision 1609)
+++ binutils/binutils/sim/common/sim-load.c (working copy)
@@ -30,6 +30,7 @@ along with this program. If not, see <h
Now, the reason why this is a bug is obscure. SIM_ADDR is defaulted to 32-bits, and in every other file, sim-main.h can define:
#define CORE_ADDR_TYPE unsigned long
but this one file doesn't include that header, so, in this one file SIM_ADDR is 32-bits, and in the rest of the objects it is 64-bit, hence breaking 64-bit ports that use sim-main.h to define CORE_ADDR_TYPE.
If this isn't the right fix, let me know which header these are supposed to go in... Thanks.