mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
Minor bugfixes after trying to get a 29K target to build.
This commit is contained in:
@ -58,7 +58,7 @@ extern struct target_ops adapt_ops; /* Forward declaration */
|
|||||||
static void adapt_fetch_registers ();
|
static void adapt_fetch_registers ();
|
||||||
static int adapt_store_registers ();
|
static int adapt_store_registers ();
|
||||||
static void adapt_close ();
|
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
|
* Processor types. It is assumed that the adapt has the correct
|
||||||
|
@ -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. */
|
/* Close out all files and local state before this target loses control. */
|
||||||
|
|
||||||
void
|
static void
|
||||||
eb_close (quitting)
|
eb_close (quitting)
|
||||||
int quitting;
|
int quitting;
|
||||||
{
|
{
|
||||||
|
@ -287,9 +287,9 @@ mm_open (name, from_tty)
|
|||||||
/* Find the first whitespace character, it separates dev_name from
|
/* Find the first whitespace character, it separates dev_name from
|
||||||
prog_name. */
|
prog_name. */
|
||||||
for (p = name;
|
for (p = name;
|
||||||
*p != '\0' && !isspace (*p); p++)
|
p && *p && !isspace (*p); p++)
|
||||||
;
|
;
|
||||||
if (*p == '\0')
|
if (p == 0 || *p == '\0')
|
||||||
erroid:
|
erroid:
|
||||||
error ("Usage : <command> <serial-device> <baud-rate> [progname]");
|
error ("Usage : <command> <serial-device> <baud-rate> [progname]");
|
||||||
dev_name = (char*)malloc (p - name + 1);
|
dev_name = (char*)malloc (p - name + 1);
|
||||||
|
Reference in New Issue
Block a user