remote_gdb.cc (13575:aafa2c83ab3c) | remote_gdb.cc (14010:0e1e887507c0) |
---|---|
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 --- 612 unchanged lines hidden (view full) --- 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(); | 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 --- 612 unchanged lines hidden (view full) --- 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(); |
629 proxy.readBlob(vaddr, (uint8_t*)data, size); | 629 proxy.readBlob(vaddr, data, size); |
630 } else { 631 SETranslatingPortProxy &proxy = tc->getMemProxy(); | 630 } else { 631 SETranslatingPortProxy &proxy = tc->getMemProxy(); |
632 proxy.readBlob(vaddr, (uint8_t*)data, size); | 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); 640 DPRINTFNR(": %s\n", buf); --- 23 unchanged lines hidden (view full) --- 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(); | 633 } 634 635#if TRACING_ON 636 if (DTRACE(GDBRead)) { 637 if (DTRACE(GDBExtra)) { 638 char buf[1024]; 639 mem2hex(buf, data, size); 640 DPRINTFNR(": %s\n", buf); --- 23 unchanged lines hidden (view full) --- 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(); |
672 proxy.writeBlob(vaddr, (uint8_t*)data, size); | 672 proxy.writeBlob(vaddr, data, size); |
673 } else { 674 SETranslatingPortProxy &proxy = tc->getMemProxy(); | 673 } else { 674 SETranslatingPortProxy &proxy = tc->getMemProxy(); |
675 proxy.writeBlob(vaddr, (uint8_t*)data, size); | 675 proxy.writeBlob(vaddr, data, size); |
676 } 677 678 return true; 679} 680 681void 682BaseRemoteGDB::singleStep() 683{ --- 467 unchanged lines hidden --- | 676 } 677 678 return true; 679} 680 681void 682BaseRemoteGDB::singleStep() 683{ --- 467 unchanged lines hidden --- |