* 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:
Daniel Jacobowitz 2006-12-30 15:44:51 +00:00
parent 03fa9f0e99
commit 8264bb58d6
3 changed files with 32 additions and 3 deletions

View file

@ -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]);