summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2008-06-06 19:26:10 +0000
committerDJ Delorie <dj@delorie.com>2008-06-06 19:26:10 +0000
commitbd3a7cdb812632c41505fa43dc4fe29ae96a030f (patch)
tree6ec9c5e614d23af3f689cb7b10f3b249f4d5680e
parent39fdefc740531885a90c7db8b36c2942da0064d0 (diff)
downloadgdb-bd3a7cdb812632c41505fa43dc4fe29ae96a030f.tar.gz
Oops, missed some warnings.
* mem.h (m32c_sim_restore_console): New.
-rw-r--r--sim/m32c/ChangeLog1
-rw-r--r--sim/m32c/gdb-if.c3
-rw-r--r--sim/m32c/mem.c2
-rw-r--r--sim/m32c/mem.h2
-rw-r--r--sim/m32c/timer_a.h2
5 files changed, 9 insertions, 1 deletions
diff --git a/sim/m32c/ChangeLog b/sim/m32c/ChangeLog
index 121670d12e9..76cad22fb26 100644
--- a/sim/m32c/ChangeLog
+++ b/sim/m32c/ChangeLog
@@ -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.
diff --git a/sim/m32c/gdb-if.c b/sim/m32c/gdb-if.c
index a8ba3920cd4..04c5dbad057 100644
--- a/sim/m32c/gdb-if.c
+++ b/sim/m32c/gdb-if.c
@@ -35,6 +35,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#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
diff --git a/sim/m32c/mem.c b/sim/m32c/mem.c
index a277787e3c6..474fc5e75f9 100644
--- a/sim/m32c/mem.c
+++ b/sim/m32c/mem.c
@@ -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 ()
diff --git a/sim/m32c/mem.h b/sim/m32c/mem.h
index c4354e442c3..ad53a01f595 100644
--- a/sim/m32c/mem.h
+++ b/sim/m32c/mem.h
@@ -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 ();
diff --git a/sim/m32c/timer_a.h b/sim/m32c/timer_a.h
index e1e7f216bf2..abf58833b08 100644
--- a/sim/m32c/timer_a.h
+++ b/sim/m32c/timer_a.h
@@ -10,3 +10,5 @@ typedef struct
} Timer_A;
extern Timer_A timer_a;
+
+extern void update_timer_a ();