remote_gdb.cc (14010:0e1e887507c0) | remote_gdb.cc (14020:c9bf7a011602) |
---|---|
1/* 2 * Copyright (c) 2018 ARM Limited 3 * 4 * The license below extends only to copyright in the software and shall 5 * not be construed as granting a license to any other intellectual 6 * property including but not limited to intellectual property relating 7 * to a hardware implementation of the functionality of the software 8 * licensed hereunder. You may use the software subject to the license --- 611 unchanged lines hidden (view full) --- 620 if (vaddr < 10) { 621 DPRINTF(GDBRead, "read: reading memory location zero!\n"); 622 vaddr = lastaddr + lastsize; 623 } 624 625 DPRINTF(GDBRead, "read: addr=%#x, size=%d", vaddr, size); 626 627 if (FullSystem) { | 1/* 2 * Copyright (c) 2018 ARM Limited 3 * 4 * The license below extends only to copyright in the software and shall 5 * not be construed as granting a license to any other intellectual 6 * property including but not limited to intellectual property relating 7 * to a hardware implementation of the functionality of the software 8 * licensed hereunder. You may use the software subject to the license --- 611 unchanged lines hidden (view full) --- 620 if (vaddr < 10) { 621 DPRINTF(GDBRead, "read: reading memory location zero!\n"); 622 vaddr = lastaddr + lastsize; 623 } 624 625 DPRINTF(GDBRead, "read: addr=%#x, size=%d", vaddr, size); 626 627 if (FullSystem) { |
628 FSTranslatingPortProxy &proxy = tc->getVirtProxy(); | 628 PortProxy &proxy = tc->getVirtProxy(); |
629 proxy.readBlob(vaddr, data, size); 630 } else { | 629 proxy.readBlob(vaddr, data, size); 630 } else { |
631 SETranslatingPortProxy &proxy = tc->getMemProxy(); | 631 PortProxy &proxy = tc->getMemProxy(); |
632 proxy.readBlob(vaddr, data, size); 633 } 634 635#if TRACING_ON 636 if (DTRACE(GDBRead)) { 637 if (DTRACE(GDBExtra)) { 638 char buf[1024]; 639 mem2hex(buf, data, size); --- 23 unchanged lines hidden (view full) --- 663 if (DTRACE(GDBExtra)) { 664 char buf[1024]; 665 mem2hex(buf, data, size); 666 DPRINTFNR(": %s\n", buf); 667 } else 668 DPRINTFNR("\n"); 669 } 670 if (FullSystem) { | 632 proxy.readBlob(vaddr, data, size); 633 } 634 635#if TRACING_ON 636 if (DTRACE(GDBRead)) { 637 if (DTRACE(GDBExtra)) { 638 char buf[1024]; 639 mem2hex(buf, data, size); --- 23 unchanged lines hidden (view full) --- 663 if (DTRACE(GDBExtra)) { 664 char buf[1024]; 665 mem2hex(buf, data, size); 666 DPRINTFNR(": %s\n", buf); 667 } else 668 DPRINTFNR("\n"); 669 } 670 if (FullSystem) { |
671 FSTranslatingPortProxy &proxy = tc->getVirtProxy(); | 671 PortProxy &proxy = tc->getVirtProxy(); |
672 proxy.writeBlob(vaddr, data, size); 673 } else { | 672 proxy.writeBlob(vaddr, data, size); 673 } else { |
674 SETranslatingPortProxy &proxy = tc->getMemProxy(); | 674 PortProxy &proxy = tc->getMemProxy(); |
675 proxy.writeBlob(vaddr, data, size); 676 } 677 678 return true; 679} 680 681void 682BaseRemoteGDB::singleStep() --- 468 unchanged lines hidden --- | 675 proxy.writeBlob(vaddr, data, size); 676 } 677 678 return true; 679} 680 681void 682BaseRemoteGDB::singleStep() --- 468 unchanged lines hidden --- |