remote_gdb.cc (3579:e9976b62c259) remote_gdb.cc (3603:714467743f9b)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 407 unchanged lines hidden (view full) ---

416 if (csum == 0) {
417 //Report that the packet was received correctly
418 putbyte(GDBGoodP);
419 // Sequence present?
420 if (bp[2] == ':') {
421 putbyte(bp[0]);
422 putbyte(bp[1]);
423 len -= 3;
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 407 unchanged lines hidden (view full) ---

416 if (csum == 0) {
417 //Report that the packet was received correctly
418 putbyte(GDBGoodP);
419 // Sequence present?
420 if (bp[2] == ':') {
421 putbyte(bp[0]);
422 putbyte(bp[1]);
423 len -= 3;
424 bcopy(bp + 3, bp, len);
424 memcpy(bp, bp+3, len);
425 }
426 break;
427 }
428 //Otherwise, report that there was a mistake.
429 putbyte(GDBBadP);
430 } while (1);
431
432 DPRINTF(GDBRecv, "recv: %s: %s\n", gdb_command(*bp), bp);

--- 567 unchanged lines hidden ---
425 }
426 break;
427 }
428 //Otherwise, report that there was a mistake.
429 putbyte(GDBBadP);
430 } while (1);
431
432 DPRINTF(GDBRecv, "recv: %s: %s\n", gdb_command(*bp), bp);

--- 567 unchanged lines hidden ---