remote_gdb.cc (2680:246e7104f744) remote_gdb.cc (2684:71f3cabf891f)
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;

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

637
638 if (vaddr < 10) {
639 DPRINTF(GDBRead, "read: reading memory location zero!\n");
640 vaddr = lastaddr + lastsize;
641 }
642
643 DPRINTF(GDBRead, "read: addr=%#x, size=%d", vaddr, size);
644
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;

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

637
638 if (vaddr < 10) {
639 DPRINTF(GDBRead, "read: reading memory location zero!\n");
640 vaddr = lastaddr + lastsize;
641 }
642
643 DPRINTF(GDBRead, "read: addr=%#x, size=%d", vaddr, size);
644
645 context->getVirtPort(context)->readBlob(vaddr, (uint8_t*)data, size);
645 VirtualPort *vp = context->getVirtPort(context);
646 vp->readBlob(vaddr, (uint8_t*)data, size);
647 context->delVirtPort(vp);
646
647#if TRACING_ON
648 if (DTRACE(GDBRead)) {
649 if (DTRACE(GDBExtra)) {
650 char buf[1024];
651 mem2hex(buf, data, size);
652 DPRINTFNR(": %s\n", buf);
653 } else

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

674 DPRINTFN("write: addr=%#x, size=%d", vaddr, size);
675 if (DTRACE(GDBExtra)) {
676 char buf[1024];
677 mem2hex(buf, data, size);
678 DPRINTFNR(": %s\n", buf);
679 } else
680 DPRINTFNR("\n");
681 }
648
649#if TRACING_ON
650 if (DTRACE(GDBRead)) {
651 if (DTRACE(GDBExtra)) {
652 char buf[1024];
653 mem2hex(buf, data, size);
654 DPRINTFNR(": %s\n", buf);
655 } else

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

676 DPRINTFN("write: addr=%#x, size=%d", vaddr, size);
677 if (DTRACE(GDBExtra)) {
678 char buf[1024];
679 mem2hex(buf, data, size);
680 DPRINTFNR(": %s\n", buf);
681 } else
682 DPRINTFNR("\n");
683 }
684 VirtualPort *vp = context->getVirtPort(context);
685 vp->writeBlob(vaddr, (uint8_t*)data, size);
686 context->delVirtPort(vp);
682
687
683 context->getVirtPort(context)->writeBlob(vaddr, (uint8_t*)data, size);
684
685#ifdef IMB
686 alpha_pal_imb();
687#endif
688
689 return true;
690}
691
692

--- 485 unchanged lines hidden ---
688#ifdef IMB
689 alpha_pal_imb();
690#endif
691
692 return true;
693}
694
695

--- 485 unchanged lines hidden ---