aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-os9k.c
diff options
context:
space:
mode:
authorKung Hsu <kung@cygnus>1994-03-30 00:18:29 +0000
committerKung Hsu <kung@cygnus>1994-03-30 00:18:29 +0000
commitd80ff70c100a550acafe3b666e7e30028e4a15f6 (patch)
treea93b9b5c5ddd7fd44be1e110ab39cf6b5b7bd326 /gdb/remote-os9k.c
parent8f197c94e3dd3969bf50577fc303a44c6f1fbdab (diff)
downloadgdb-d80ff70c100a550acafe3b666e7e30028e4a15f6.zip
gdb-d80ff70c100a550acafe3b666e7e30028e4a15f6.tar.gz
gdb-d80ff70c100a550acafe3b666e7e30028e4a15f6.tar.bz2
Modified Files:
ChangeLog os9kread.c remote-os9k.c * os9kread.c (record_minmal_symbol): add section_offset to relocate minimal symbol table. * os9kread.c (read_minimal_symbols): ditto. * os9kread.c (os9k_symfile_init): increase size of dbg and stb file names. * os9kread.c (read_os9k_psymtab): if there's no dbg file, just return. Also if file addr is 0 leave it 0, not to relocate. * remote-os9k.c (_initialize_remote_os9k): add 'set remotexon', 'set remotexoff' and 'set remotelog' commands.
Diffstat (limited to 'gdb/remote-os9k.c')
-rw-r--r--gdb/remote-os9k.c27
1 files changed, 26 insertions, 1 deletions
diff --git a/gdb/remote-os9k.c b/gdb/remote-os9k.c
index 6b862da..abeb1b5 100644
--- a/gdb/remote-os9k.c
+++ b/gdb/remote-os9k.c
@@ -49,6 +49,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "symfile.h"
#include "objfiles.h"
#include "gdb-stabs.h"
+#include <termio.h>
#ifdef HAVE_TERMIO
# define TERMINAL struct termios
@@ -78,6 +79,8 @@ static int rombug_is_open = 0;
#define LOG_FILE "monitor.log"
FILE *log_file;
static int monitor_log = 0;
+static int tty_xon = 0;
+static int tty_xoff = 0;
static int timeout = 5;
static int is_trace_mode = 0;
@@ -339,6 +342,15 @@ rombug_open(args, from_tty)
perror_with_name ("RomBug");
}
SERIAL_RAW(monitor_desc);
+ if (tty_xon || tty_xoff)
+ {
+ struct hardware_ttystate { struct termios t;} *tty_s;
+
+ tty_s =(struct hardware_ttystate *)SERIAL_GET_TTY_STATE(monitor_desc);
+ if (tty_xon) tty_s->t.c_iflag |= IXON;
+ if (tty_xoff) tty_s->t.c_iflag |= IXOFF;
+ SERIAL_SET_TTY_STATE(monitor_desc, (serial_ttystate) tty_s);
+ }
rombug_is_open = 1;
@@ -1164,12 +1176,25 @@ _initialize_remote_os9k ()
&showlist);
add_show_from_set (
- add_set_cmd ("monitor_log", no_class, var_zinteger,
+ add_set_cmd ("remotelog", no_class, var_zinteger,
(char *) &monitor_log,
"Set monitor activity log on(=1) or off(=0).",
&setlist),
&showlist);
+ add_show_from_set (
+ add_set_cmd ("remotexon", no_class, var_zinteger,
+ (char *) &tty_xon,
+ "Set remote tty line XON control",
+ &setlist),
+ &showlist);
+
+ add_show_from_set (
+ add_set_cmd ("remotexoff", no_class, var_zinteger,
+ (char *) &tty_xoff,
+ "Set remote tty line XOFF control",
+ &setlist),
+ &showlist);
add_com ("rombug <command>", class_obscure, rombug_command,
"Send a command to the debug monitor.");