diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-12-30 15:44:51 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-12-30 15:44:51 +0000 |
commit | 8264bb58d66b04ee787f18e5cb6a54f6cc75e620 (patch) | |
tree | 5dfb1df37d747c2029957397323cd1358cc21209 /gdb/gdbserver/server.c | |
parent | 03fa9f0e991d53341620fb552ca90f302131a74b (diff) | |
download | fsf-binutils-gdb-8264bb58d66b04ee787f18e5cb6a54f6cc75e620.zip fsf-binutils-gdb-8264bb58d66b04ee787f18e5cb6a54f6cc75e620.tar.gz fsf-binutils-gdb-8264bb58d66b04ee787f18e5cb6a54f6cc75e620.tar.bz2 |
* remote-utils.c (remote_open): Check the type of specified
serial port devices before opening them.
* server.c (main): Kill the inferior if an error occurs during
the first remote_open.
Diffstat (limited to 'gdb/gdbserver/server.c')
-rw-r--r-- | gdb/gdbserver/server.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 10a891e..84d0d68 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -614,6 +614,13 @@ main (int argc, char *argv[]) } } + if (setjmp (toplevel)) + { + fprintf (stderr, "Killing inferior\n"); + kill_inferior (); + exit (1); + } + while (1) { remote_open (argv[1]); |