+Tue Sep 15 14:02:01 1998 Nick Clifton <nickc@cygnus.com>
+
+ * remote-rdi.c: Prevent multiple attempts to close the remote
+ connection.
+
Tue Sep 15 10:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
* printcmd.c (examine_i_type): New static - type for instructions.
return fgets(buffer, len, stdin);
}
+/* Prevent multiple calls to angel_RDI_close(). */
+static int closed_already = 1;
+
/* Open a connection to a remote debugger. NAME is the filename used
for communication. */
}
printf_filtered ("Connected to ARM RDI target.\n");
+
+ closed_already = 0;
}
/* Start an inferior process and set inferior_pid to its pid.
{
int rslt;
- rslt = angel_RDI_close ();
- if (rslt)
+ if (! closed_already)
{
- printf_filtered ("RDI_close: %s\n", rdi_error_message (rslt));
+ rslt = angel_RDI_close ();
+ if (rslt)
+ {
+ printf_filtered ("RDI_close: %s\n", rdi_error_message (rslt));
+ }
+ closed_already = 1;
}
}
\f