/* Remote debugging interface to Xilinx MicroBlaze.
- Copyright 2009-2012 Free Software Foundation, Inc.
+ Copyright (C) 2009-2015 Free Software Foundation, Inc.
This file is part of GDB.
#include "gdbcore.h"
#include "target.h"
#include "monitor.h"
-#include "gdb_string.h"
#include "serial.h"
#include "regcache.h"
+void _initialize_picobug_rom (void);
+
static char *picobug_inits[] =
{"\r", NULL};
static void
-picobug_open (char *args, int from_tty)
+picobug_open (const char *args, int from_tty)
{
monitor_open (args, &picobug_cmds, from_tty);
}
if (strchr (p, '-'))
{
/* Got a range. Either r0-r7, r8-r15 or ss0-ss4. */
- if (strncmp (p, "r0", 2) == 0 || strncmp (p, "r8", 2) == 0)
+ if (startswith (p, "r0") || startswith (p, "r8"))
{
int rn = (p[1] == '0' ? 0 : 8);
int i = 0;
i++;
}
}
- else if (strncmp (p, "ss", 2) == 0)
+ else if (startswith (p, "ss"))
{
/* Get the next five values, ignoring the first. */
int rn;
}
void
-_initialize_picobug_rom ()
+_initialize_picobug_rom (void)
{
int i;