diff options
author | Steve Chamberlain <sac@cygnus> | 1993-01-06 18:22:01 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1993-01-06 18:22:01 +0000 |
commit | a944e79a999ca5504b9f4220943032b5bbcc1e93 (patch) | |
tree | 5df975768b4f25fdbc93657fc4984b0524ccaa98 /gdb/remote-hms.c | |
parent | 81028ab0e7f01315dbb7853b81260670ba57fae0 (diff) | |
download | gdb-a944e79a999ca5504b9f4220943032b5bbcc1e93.zip gdb-a944e79a999ca5504b9f4220943032b5bbcc1e93.tar.gz gdb-a944e79a999ca5504b9f4220943032b5bbcc1e93.tar.bz2 |
* symfile.c: If O_BINARY isn't defined, set it to 0, call openp for
binary files oring in the right bit.
* main.c, source.c, state.c, symmisc.c: use macros defined in
fopen-{bin|both} when fopening files.
* remote-hms.c, remote-sim.c: lint
Diffstat (limited to 'gdb/remote-hms.c')
-rw-r--r-- | gdb/remote-hms.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/remote-hms.c b/gdb/remote-hms.c index a21d86e..0cb42f6 100644 --- a/gdb/remote-hms.c +++ b/gdb/remote-hms.c @@ -622,14 +622,13 @@ static void hms_close (quitting) int quitting; { - /* Clear any break points */ hms_clear_breakpoints (); - - /* Put this port back into REMOTE mode */ sleep (1); /* Let any output make it all the way back */ - serial_write ("R\r", 2); - serial_close (); + if (is_open) { + serial_write ("R\r", 2); + serial_close (); + } is_open = 0; } |