Created
December 18, 2010 11:42
-
-
Save kikairoya/746434 to your computer and use it in GitHub Desktop.
diff for gdb-7.2 --build=x86_64-*-linux-gnu --host=x86_64-w64-mingw32 --target=h8300-elf/m32c-elf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c | |
index 44d60f6..56ecf3b 100644 | |
--- a/sim/h8300/compile.c | |
+++ b/sim/h8300/compile.c | |
@@ -37,6 +37,9 @@ | |
#ifndef SIGTRAP | |
# define SIGTRAP 5 | |
#endif | |
+#ifndef SIGBUS | |
+# define SIGBUS 14 | |
+#endif | |
int debug; | |
diff --git a/sim/m32c/Makefile.in b/sim/m32c/Makefile.in | |
index c304ab8..ee7198e 100644 | |
--- a/sim/m32c/Makefile.in | |
+++ b/sim/m32c/Makefile.in | |
@@ -55,7 +55,7 @@ m32c.c : m32c.opc opc2c | |
./opc2c -l m32c.out $(srcdir)/m32c.opc > m32c.c | |
opc2c : opc2c.o safe-fgets.o | |
- $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ | |
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $^ -o $@ | |
sample.x : $(srcdir)/sample.S $(srcdir)/sample.ld | |
../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample.S -o sample.o | |
@@ -82,9 +82,11 @@ load.o : load.h cpu.h mem.h | |
main.o : cpu.h mem.h misc.h load.h | |
mem.o : mem.h cpu.h syscalls.h | |
misc.o : cpu.h misc.h | |
-opc2c.o : safe-fgets.h | |
+opc2c.o : opc2c.c safe-fgets.h | |
+ $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -o $@ $< | |
reg.o : cpu.h | |
-safe-fgets.o : safe-fgets.h | |
+safe-fgets.o : safe-fgets.c safe-fgets.h | |
+ $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -o $@ $< | |
srcdest.c : cpu.h mem.h | |
syscalls.c : cpu.h mem.h syscalls.h | |
diff --git a/sim/m32c/mem.c b/sim/m32c/mem.c | |
index 02604d5..4e4fe03 100644 | |
--- a/sim/m32c/mem.c | |
+++ b/sim/m32c/mem.c | |
@@ -409,6 +409,12 @@ m32c_sim_restore_console () | |
tcsetattr (m32c_console_ifd, TCSANOW, &oattr); | |
console_raw = 0; | |
} | |
+#else | |
+void | |
+m32c_sim_restore_console () | |
+{ | |
+ /* dummy */ | |
+} | |
#endif | |
static unsigned char | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment