* 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.
This commit is contained in:
parent
03fa9f0e99
commit
8264bb58d6
3 changed files with 32 additions and 3 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue