Use regcache->tdesc instead of arm_hwcap
[deliverable/binutils-gdb.git] / gdb / microblaze-rom.c
index 014e4217b2b417fdde7909b017d0359e8f1f323e..beffadf10035e86c1de751539e0dd7cb9cc7215d 100644 (file)
@@ -1,6 +1,6 @@
 /* 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};
 
@@ -47,7 +48,7 @@ static char *picobug_regnames[] = {
 
 
 static void
-picobug_open (char *args, int from_tty)
+picobug_open (const char *args, int from_tty)
 {
   monitor_open (args, &picobug_cmds, from_tty);
 }
@@ -82,7 +83,7 @@ picobug_dumpregs (struct regcache *regcache)
       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;
@@ -96,7 +97,7 @@ picobug_dumpregs (struct regcache *regcache)
                  i++;
                }
            }
-         else if (strncmp (p, "ss", 2) == 0)
+         else if (startswith (p, "ss"))
            {
              /* Get the next five values, ignoring the first.  */
              int rn;
@@ -174,7 +175,7 @@ init_picobug_cmds (void)
 }
 
 void
-_initialize_picobug_rom ()
+_initialize_picobug_rom (void)
 {
   int i;
 
This page took 0.024627 seconds and 4 git commands to generate.