* remote-mips.c (mips_receive_header): Recognize \012 instead
of \n, but write \n when program sends a \012. * ser-mac.c (mac_input_buffer): Increase size of buffer.
This commit is contained in:
parent
3d01586485
commit
1f23375860
|
@ -1,3 +1,9 @@
|
||||||
|
Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
|
||||||
|
|
||||||
|
* remote-mips.c (mips_receive_header): Recognize \012 instead
|
||||||
|
of \n, but write \n when program sends a \012.
|
||||||
|
* ser-mac.c (mac_input_buffer): Increase size of buffer.
|
||||||
|
|
||||||
Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
|
Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
* infptrace.c (initialize_infptrace): Move function out of
|
* infptrace.c (initialize_infptrace): Move function out of
|
||||||
|
|
|
@ -498,11 +498,17 @@ mips_receive_header (hdr, pgarbage, ch, timeout)
|
||||||
we can't deal with a QUIT out of target_wait. */
|
we can't deal with a QUIT out of target_wait. */
|
||||||
if (! mips_initializing || remote_debug > 0)
|
if (! mips_initializing || remote_debug > 0)
|
||||||
{
|
{
|
||||||
if (ch < 0x20 && ch != '\n')
|
/* Note that the host's idea of newline may not
|
||||||
|
correspond to the target's idea, so recognize
|
||||||
|
newline by its actual ASCII code, but write it
|
||||||
|
out using the \n notation. */
|
||||||
|
if (ch < 0x20 && ch != '\012')
|
||||||
{
|
{
|
||||||
putchar_unfiltered ('^');
|
putchar_unfiltered ('^');
|
||||||
putchar_unfiltered (ch + 0x40);
|
putchar_unfiltered (ch + 0x40);
|
||||||
}
|
}
|
||||||
|
else if (ch == '\012')
|
||||||
|
putchar_unfiltered ('\n');
|
||||||
else
|
else
|
||||||
putchar_unfiltered (ch);
|
putchar_unfiltered (ch);
|
||||||
gdb_flush (gdb_stdout);
|
gdb_flush (gdb_stdout);
|
||||||
|
|
|
@ -60,7 +60,7 @@ mac_open (scb, name)
|
||||||
/* Alloc buffer space first - that way any allocation failures are
|
/* Alloc buffer space first - that way any allocation failures are
|
||||||
intercepted before the serial driver gets involved. */
|
intercepted before the serial driver gets involved. */
|
||||||
if (mac_input_buffer == NULL)
|
if (mac_input_buffer == NULL)
|
||||||
mac_input_buffer = (char *) xmalloc (256);
|
mac_input_buffer = (char *) xmalloc (4096);
|
||||||
/* Match on a name and open a port. */
|
/* Match on a name and open a port. */
|
||||||
if (strcmp (name, "modem") == 0)
|
if (strcmp (name, "modem") == 0)
|
||||||
{
|
{
|
||||||
|
@ -101,7 +101,7 @@ mac_open (scb, name)
|
||||||
}
|
}
|
||||||
/* We got something open. */
|
/* We got something open. */
|
||||||
if (1 /* using custom buffer */)
|
if (1 /* using custom buffer */)
|
||||||
SerSetBuf (input_refnum, mac_input_buffer, 256);
|
SerSetBuf (input_refnum, mac_input_buffer, 4096);
|
||||||
/* Set to a GDB-preferred state. */
|
/* Set to a GDB-preferred state. */
|
||||||
SerReset (input_refnum, stop10|noParity|data8|baud9600);
|
SerReset (input_refnum, stop10|noParity|data8|baud9600);
|
||||||
SerReset (output_refnum, stop10|noParity|data8|baud9600);
|
SerReset (output_refnum, stop10|noParity|data8|baud9600);
|
||||||
|
|
Loading…
Reference in New Issue