/* Remote debugging interface for MIPS remote debugging protocol.
- Copyright 1993, 1994, 1995 Free Software Foundation, Inc.
+ Copyright 1993-1995, 2000 Free Software Foundation, Inc.
Contributed by Cygnus Support. Written by Ian Lance Taylor
<ian@cygnus.com>.
#include "inferior.h"
#include "bfd.h"
#include "symfile.h"
-#include "wait.h"
+#include "gdb_wait.h"
#include "gdbcmd.h"
#include "gdbcore.h"
#include "serial.h"
#define S_IROTH S_IREAD
#endif
-extern void mips_set_processor_type_command PARAMS ((char *, int));
\f
/* Breakpoint types. Values 0, 1, and 2 must agree with the watch
static int mips_wait_flag = 0;
/* If non-zero, monitor supports breakpoint commands. */
-static monitor_supports_breakpoints = 0;
+static int monitor_supports_breakpoints = 0;
/* Data cache header. */
static void
fputc_readable (ch, file)
int ch;
- struct gdb_file *file;
+ struct ui_file *file;
{
if (ch == '\n')
fputc_unfiltered ('\n', file);
static void
fputs_readable (string, file)
char *string;
- struct gdb_file *file;
+ struct ui_file *file;
{
int c;
}
int
-remote_mips_stopped_by_watchpoint ()
+remote_mips_stopped_by_watchpoint (void)
{
return hit_watchpoint;
}
case 0x6: /* ACK */
return;
case 0x15: /* NACK */
- fprintf_unfiltered (gdb_stderr, "Download got a NACK at byte %d! Retrying.\n", addr);
+ fprintf_unfiltered (gdb_stderr, "Download got a NACK at byte %s! Retrying.\n", paddr_u (addr));
continue;
default:
error ("Download got unexpected ack char: 0x%x, retrying.\n", ch);
{
unsigned int numbytes;
- /* FIXME! vma too small?? */
- printf_filtered ("%s\t: 0x%4x .. 0x%4x ", s->name, s->vma,
- s->vma + s->_raw_size);
+ /* FIXME! vma too small????? */
+ printf_filtered ("%s\t: 0x%4lx .. 0x%4lx ", s->name,
+ (long) s->vma,
+ (long) (s->vma + s->_raw_size));
gdb_flush (gdb_stdout);
for (i = 0; i < s->_raw_size; i += numbytes)