mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 11:00:01 +08:00
* config/tc-m68k.c (m68k_ip): Use the correct length when
allocating space for the unsupported architecture error message.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Thu Jul 18 15:54:54 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* config/tc-m68k.c (m68k_ip): Use the correct length when
|
||||||
|
allocating space for the unsupported architecture error message.
|
||||||
|
|
||||||
start-sanitize-d10v
|
start-sanitize-d10v
|
||||||
Thu Jul 18 12:57:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
|
Thu Jul 18 12:57:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
|
||||||
|
|
||||||
|
@ -1561,7 +1561,7 @@ m68k_ip (instring)
|
|||||||
&& !(ok_arch & current_architecture))
|
&& !(ok_arch & current_architecture))
|
||||||
{
|
{
|
||||||
char buf[200], *cp;
|
char buf[200], *cp;
|
||||||
int len;
|
|
||||||
strcpy (buf,
|
strcpy (buf,
|
||||||
"invalid instruction for this architecture; needs ");
|
"invalid instruction for this architecture; needs ");
|
||||||
cp = buf + strlen (buf);
|
cp = buf + strlen (buf);
|
||||||
@ -1603,8 +1603,7 @@ m68k_ip (instring)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
len = cp - buf + 1;
|
cp = xmalloc (strlen (buf) + 1);
|
||||||
cp = malloc (len);
|
|
||||||
strcpy (cp, buf);
|
strcpy (cp, buf);
|
||||||
the_ins.error = cp;
|
the_ins.error = cp;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user