value_maybe_namespace_elt: Remove unnecessary test of result != NULL.
[deliverable/binutils-gdb.git] / gdb / microblaze-rom.c
index d6c27dc44cd6d206aa2e29d1bbdb05496cf93dba..19bf583c244404e16051824c35e90704f9981801 100644 (file)
@@ -1,6 +1,6 @@
 /* Remote debugging interface to Xilinx MicroBlaze.
 
-   Copyright 2009 Free Software Foundation, Inc.
+   Copyright (C) 2009-2014 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 struct target_ops picobug_ops;
 static struct monitor_ops picobug_cmds;
 
-/* Picobug only supports a subset of registers from MCore. In reality,
+/* Picobug only supports a subset of registers from MCore.  In reality,
    it doesn't support ss1, either.  */
 static char *picobug_regnames[] = {
   "r0",   "r1",   "r2",   "r3",   "r4",   "r5",   "r6",   "r7",
@@ -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);
 }
@@ -81,7 +82,7 @@ picobug_dumpregs (struct regcache *regcache)
     {
       if (strchr (p, '-'))
        {
-         /* got a range. either r0-r7, r8-r15 or ss0-ss4.  */
+         /* Got a range.  Either r0-r7, r8-r15 or ss0-ss4.  */
          if (strncmp (p, "r0", 2) == 0 || strncmp (p, "r8", 2) == 0)
            {
              int rn = (p[1] == '0' ? 0 : 8);
@@ -98,7 +99,7 @@ picobug_dumpregs (struct regcache *regcache)
            }
          else if (strncmp (p, "ss", 2) == 0)
            {
-             /* get the next five values, ignoring the first.  */
+             /* Get the next five values, ignoring the first.  */
              int rn;
              p = strtok (NULL, " \t\r\n");
              for (rn = 39; rn < 43; rn++)
@@ -174,7 +175,7 @@ init_picobug_cmds (void)
 }
 
 void
-_initialize_picobug_rom ()
+_initialize_picobug_rom (void)
 {
   int i;
 
This page took 0.032345 seconds and 4 git commands to generate.