This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[m32c sim] various patches
- From: DJ Delorie <dj at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 6 Jun 2008 15:26:12 -0400
- Subject: [m32c sim] various patches
Oops, missed some warnings.
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/sim/m32c/ChangeLog,v
retrieving revision 1.7
diff -p -U3 -r1.7 ChangeLog
--- ChangeLog 6 Jun 2008 19:18:14 -0000 1.7
+++ ChangeLog 6 Jun 2008 19:25:22 -0000
@@ -1,5 +1,5 @@
2008-06-06 DJ Delorie <dj@redhat.com>
-
+
* Makefile.in: Add Timer A support.
* cpu.h (m32c_opcode_pc): New.
(in_gdb): New.
@@ -20,6 +20,7 @@
* main.c: Add Timer A support. Support TCP-based console.
(setup_tcp_console): New.
(main): Add Timer A support. Support TCP-based console.
+ * mem.h (m32c_sim_restore_console): New.
* mem.c: Add Timer A support. Support TCP-based console.
(mem_ptr): Enhance NULL pointer detection.
(stdin_ready): New.
Index: gdb-if.c
===================================================================
RCS file: /cvs/src/src/sim/m32c/gdb-if.c,v
retrieving revision 1.5
diff -p -U3 -r1.5 gdb-if.c
--- gdb-if.c 6 Jun 2008 19:18:14 -0000 1.5
+++ gdb-if.c 6 Jun 2008 19:25:22 -0000
@@ -35,6 +35,9 @@ along with this program. If not, see <h
#include "mem.h"
#include "load.h"
#include "syscalls.h"
+#ifdef TIMER_A
+#include "timer_a.h"
+#endif
/* I don't want to wrap up all the minisim's data structures in an
object and pass that around. That'd be a big change, and neither
Index: mem.c
===================================================================
RCS file: /cvs/src/src/sim/m32c/mem.c,v
retrieving revision 1.6
diff -p -U3 -r1.6 mem.c
--- mem.c 6 Jun 2008 19:18:15 -0000 1.6
+++ mem.c 6 Jun 2008 19:25:22 -0000
@@ -374,7 +374,7 @@ mem_get_pc ()
}
static int console_raw = 0;
-static struct termios attr, oattr;
+static struct termios oattr;
static int
stdin_ready ()
Index: mem.h
===================================================================
RCS file: /cvs/src/src/sim/m32c/mem.h,v
retrieving revision 1.4
diff -p -U3 -r1.4 mem.h
--- mem.h 1 Jan 2008 22:53:25 -0000 1.4
+++ mem.h 6 Jun 2008 19:25:22 -0000
@@ -39,3 +39,5 @@ unsigned long mem_get_si (int address);
void mem_get_blk (int address, void *bufptr, int nbytes);
int sign_ext (int v, int bits);
+
+void m32c_sim_restore_console ();
Index: timer_a.h
===================================================================
RCS file: /cvs/src/src/sim/m32c/timer_a.h,v
retrieving revision 1.1
diff -p -U3 -r1.1 timer_a.h
--- timer_a.h 6 Jun 2008 19:18:15 -0000 1.1
+++ timer_a.h 6 Jun 2008 19:25:22 -0000
@@ -10,3 +10,5 @@ typedef struct
} Timer_A;
extern Timer_A timer_a;
+
+extern void update_timer_a ();