diff options
author | John Gilmore <gnu@cygnus> | 1991-09-13 07:52:09 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-09-13 07:52:09 +0000 |
commit | e36ca74a036e36e37bad30dec9414be6e71ef060 (patch) | |
tree | 5c846068bf7b9425b78b4189f23e7acdc33e6e27 | |
parent | 841c051c44d5423640f593615404820013750402 (diff) | |
download | gdb-e36ca74a036e36e37bad30dec9414be6e71ef060.zip gdb-e36ca74a036e36e37bad30dec9414be6e71ef060.tar.gz gdb-e36ca74a036e36e37bad30dec9414be6e71ef060.tar.bz2 |
Minor bugfixes after trying to get a 29K target to build.
-rw-r--r-- | gdb/remote-adapt.c | 2 | ||||
-rw-r--r-- | gdb/remote-eb.c | 2 | ||||
-rw-r--r-- | gdb/remote-mm.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/gdb/remote-adapt.c b/gdb/remote-adapt.c index 1146303..6c22422 100644 --- a/gdb/remote-adapt.c +++ b/gdb/remote-adapt.c @@ -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 diff --git a/gdb/remote-eb.c b/gdb/remote-eb.c index 53c9a70..0315fe7 100644 --- a/gdb/remote-eb.c +++ b/gdb/remote-eb.c @@ -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; { diff --git a/gdb/remote-mm.c b/gdb/remote-mm.c index 902b448..d898402 100644 --- a/gdb/remote-mm.c +++ b/gdb/remote-mm.c @@ -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); |