forked from Imagelibrary/binutils-gdb
Modified Files:
remote-os9k.c stabsread.c
* remote-os9k.c (rombuf_command): fix a bug accepting rombug
output.
* stabsread.c (read_struct_fields): os9k nested structure does not
have terminating ';', instead it just get to ',' and bit position
and length.
This commit is contained in:
@@ -1015,7 +1015,7 @@ rombug_command (args, fromtty)
|
|||||||
error("Missing command.");
|
error("Missing command.");
|
||||||
|
|
||||||
printf_monitor("%s\r", args);
|
printf_monitor("%s\r", args);
|
||||||
expect(CMD_DELIM, 0);
|
expect_prompt(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|||||||
@@ -2455,6 +2455,7 @@ read_struct_fields (fip, pp, type, objfile)
|
|||||||
|
|
||||||
while (**pp != ';')
|
while (**pp != ';')
|
||||||
{
|
{
|
||||||
|
if (os9k_stabs && **pp == ',') break;
|
||||||
STABS_CONTINUE (pp);
|
STABS_CONTINUE (pp);
|
||||||
/* Get space to record the next field's data. */
|
/* Get space to record the next field's data. */
|
||||||
new = (struct nextfield *) xmalloc (sizeof (struct nextfield));
|
new = (struct nextfield *) xmalloc (sizeof (struct nextfield));
|
||||||
|
|||||||
Reference in New Issue
Block a user