remote_gdb.cc (8784:05fb20d7064b) remote_gdb.cc (8797:3202eb01e01e)
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;

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

639 bool ret;
640
641 if (!attached)
642 return false;
643
644 bufferSize = gdbregs.bytes() * 2 + 256;
645 buffer = (char*)malloc(bufferSize);
646
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;

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

639 bool ret;
640
641 if (!attached)
642 return false;
643
644 bufferSize = gdbregs.bytes() * 2 + 256;
645 buffer = (char*)malloc(bufferSize);
646
647 TheISA::PCState pc = context->pcState();
648 DPRINTF(GDBMisc, "trap: PC=%s\n", pc);
647 DPRINTF(GDBMisc, "trap: PC=%s\n", context->pcState());
649
650 clearSingleStep();
651
652 /*
653 * The first entry to this function is normally through
654 * a breakpoint trap in kgdb_connect(), in which case we
655 * must advance past the breakpoint because gdb will not.
656 *

--- 365 unchanged lines hidden ---
648
649 clearSingleStep();
650
651 /*
652 * The first entry to this function is normally through
653 * a breakpoint trap in kgdb_connect(), in which case we
654 * must advance past the breakpoint because gdb will not.
655 *

--- 365 unchanged lines hidden ---