Wed Sep 14 18:18:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
* remote-hms.c (hms_read_inferior_memory): Cope when target sends both \r and \n.
This commit is contained in:
parent
2b9fbee414
commit
a87594a562
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Sep 14 18:18:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
|
||||||
|
|
||||||
|
* remote-hms.c (hms_read_inferior_memory): Cope when
|
||||||
|
target sends both \r and \n.
|
||||||
|
|
||||||
Wed Sep 14 17:14:57 1994 Stan Shebs (shebs@andros.cygnus.com)
|
Wed Sep 14 17:14:57 1994 Stan Shebs (shebs@andros.cygnus.com)
|
||||||
|
|
||||||
* remote-mips.c (mips_error): Place NORETURN macro correctly.
|
* remote-mips.c (mips_error): Place NORETURN macro correctly.
|
||||||
|
|
|
@ -1358,10 +1358,14 @@ hms_read_inferior_memory (memaddr, myaddr, len)
|
||||||
char byte[16];
|
char byte[16];
|
||||||
|
|
||||||
buffer[0] = readchar ();
|
buffer[0] = readchar ();
|
||||||
|
while (buffer[0] == '\r'
|
||||||
|
|| buffer[0] == '\n')
|
||||||
|
buffer[0] = readchar ();
|
||||||
|
|
||||||
if (buffer[0] == 'M')
|
if (buffer[0] == 'M')
|
||||||
break;
|
break;
|
||||||
|
|
||||||
for (i = 1; i < 60; i++) {
|
for (i = 1; i < 50; i++) {
|
||||||
buffer[i] = readchar ();
|
buffer[i] = readchar ();
|
||||||
}
|
}
|
||||||
/* sometimes we loose characters in the ascii representation of the
|
/* sometimes we loose characters in the ascii representation of the
|
||||||
|
@ -1369,7 +1373,7 @@ hms_read_inferior_memory (memaddr, myaddr, len)
|
||||||
i = readchar();
|
i = readchar();
|
||||||
while (i != '\n' && i != '\r')
|
while (i != '\n' && i != '\r')
|
||||||
i = readchar();
|
i = readchar();
|
||||||
|
|
||||||
/* Now parse the line */
|
/* Now parse the line */
|
||||||
|
|
||||||
addr = gethex (4, buffer, &ok);
|
addr = gethex (4, buffer, &ok);
|
||||||
|
|
Loading…
Reference in a new issue