diff options
author | DJ Delorie <dj@redhat.com> | 2008-06-17 00:34:37 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2008-06-17 00:34:37 +0000 |
commit | e7ddc197153de3bcee60451d867d95a13d5f146f (patch) | |
tree | d6ba28ee533b366885344fb2c18635bae33be308 /sim/m32c/main.c | |
parent | 2bcebd805259eee3878a47ba21068278d6d8495f (diff) | |
download | gdb-e7ddc197153de3bcee60451d867d95a13d5f146f.zip gdb-e7ddc197153de3bcee60451d867d95a13d5f146f.tar.gz gdb-e7ddc197153de3bcee60451d867d95a13d5f146f.tar.bz2 |
* m32c.opc (BRK, GDBBRK): Remove debug logic.
* main.c (main): Add option to set raw console.
* mem.h (m32c_use_raw_console): Declare.
* mem.c (m32c_sim_restore_console): Only restore console if it's
been previously set.
(m32c_use_raw_console): Define.
(mem_get_byte): Set raw console if m32c_use_raw_console is set.
Diffstat (limited to 'sim/m32c/main.c')
-rw-r--r-- | sim/m32c/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sim/m32c/main.c b/sim/m32c/main.c index 7187210..243be70 100644 --- a/sim/m32c/main.c +++ b/sim/m32c/main.c @@ -122,7 +122,7 @@ main (int argc, char **argv) in_gdb = 0; - while ((o = getopt (argc, argv, "tc:vdm:")) != -1) + while ((o = getopt (argc, argv, "tc:vdm:C")) != -1) switch (o) { case 't': @@ -131,6 +131,9 @@ main (int argc, char **argv) case 'c': console_port_s = optarg; break; + case 'C': + m32c_use_raw_console = 1; + break; case 'v': verbose++; break; @@ -151,7 +154,7 @@ main (int argc, char **argv) break; case '?': fprintf (stderr, - "usage: run [-v] [-t] [-d] [-m r8c|m16c|m32cm|m32c]" + "usage: run [-v] [-C] [-c port] [-t] [-d] [-m r8c|m16c|m32cm|m32c]" " program\n"); exit (1); } |