Minor bugfixes after trying to get a 29K target to build.
authorJohn Gilmore <gnu@cygnus>
Fri, 13 Sep 1991 07:52:09 +0000 (07:52 +0000)
committerJohn Gilmore <gnu@cygnus>
Fri, 13 Sep 1991 07:52:09 +0000 (07:52 +0000)
gdb/remote-adapt.c
gdb/remote-eb.c
gdb/remote-mm.c

index 114630354dbb3f4446b80a1d5b1a55e126f1942f..6c22422285a24a2b56a3cc52e239d132baa7ba34 100644 (file)
@@ -58,7 +58,7 @@ extern struct target_ops adapt_ops;           /* Forward declaration */
 static void adapt_fetch_registers ();
 static int  adapt_store_registers ();
 static void adapt_close ();
-static int  adapt_clear_breakpoints() 
+static int  adapt_clear_breakpoints();
 
 /* 
  * Processor types. It is assumed that the adapt has the correct 
index 53c9a709d77177b75cb55ec68ae8d28703a45d35..0315fe7bd51a87279f0e22e7084927c746b6febd 100644 (file)
@@ -402,7 +402,7 @@ the baud rate, and the name of the program to run on the remote system.");
 
 /* Close out all files and local state before this target loses control. */
 
-void
+static void
 eb_close (quitting)
      int quitting;
 {
index 902b4487d42d1a72c1afc9c9d1e24fe198bd1b42..d89840243565178e6b1e79aec6de176a149d3038 100644 (file)
@@ -287,9 +287,9 @@ mm_open (name, from_tty)
   /* Find the first whitespace character, it separates dev_name from
      prog_name.  */
   for (p = name;
-       *p != '\0' && !isspace (*p); p++)
+       p && *p && !isspace (*p); p++)
     ;
-  if (*p == '\0')
+  if (p == 0 || *p == '\0')
 erroid:
     error ("Usage : <command> <serial-device> <baud-rate> [progname]");
   dev_name = (char*)malloc (p - name + 1);
This page took 0.030467 seconds and 4 git commands to generate.