summaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>1999-08-09 21:33:11 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>1999-08-09 21:33:11 +0000
commitd4886c3ba4261064551190a6e72f1299a65b576f (patch)
tree921e4b983ea72a9b39a2c04154940c1875464813 /gdb/remote-mips.c
parentf84a47ce8a7028902e7294c173c8720aca82fa5d (diff)
downloadgdb-d4886c3ba4261064551190a6e72f1299a65b576f.tar.gz
import gdb-1999-08-09 snapshotgdb-1999-08-09
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r--gdb/remote-mips.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index 6d6329d6dca..c92c82fb8a4 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -35,11 +35,6 @@
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef ANSI_PROTOTYPES
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
/* Microsoft C's stat.h doesn't define all the POSIX file modes. */
#ifndef S_IROTH
@@ -487,22 +482,11 @@ close_ports ()
inconsistent state. */
static NORETURN void
-#ifdef ANSI_PROTOTYPES
mips_error (char *string,...)
-#else
-mips_error (va_alist)
- va_dcl
-#endif
{
va_list args;
-#ifdef ANSI_PROTOTYPES
va_start (args, string);
-#else
- char *string;
- va_start (args);
- string = va_arg (args, char *);
-#endif
target_terminal_ours ();
wrap_here (""); /* Force out any buffered output */
@@ -1279,7 +1263,7 @@ mips_request (cmd, addr, data, perr, timeout, buff)
if (cmd != '\0')
{
if (mips_need_reply)
- fatal ("mips_request: Trying to send command before reply");
+ internal_error ("mips_request: Trying to send command before reply");
sprintf (buff, "0x0 %c 0x%s 0x%s", cmd, paddr_nz (addr), paddr_nz (data));
mips_send_packet (buff, 1);
mips_need_reply = 1;
@@ -1289,7 +1273,7 @@ mips_request (cmd, addr, data, perr, timeout, buff)
return 0;
if (!mips_need_reply)
- fatal ("mips_request: Trying to get reply before command");
+ internal_error ("mips_request: Trying to get reply before command");
mips_need_reply = 0;