remote_gdb.cc (8797:3202eb01e01e) | remote_gdb.cc (8799:dac1e33e07b0) |
---|---|
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; --- 118 unchanged lines hidden (view full) --- 127#include "base/remote_gdb.hh" 128#include "base/socket.hh" 129#include "base/trace.hh" 130#include "config/the_isa.hh" 131#include "cpu/static_inst.hh" 132#include "cpu/thread_context.hh" 133#include "debug/GDBAll.hh" 134#include "mem/port.hh" | 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; --- 118 unchanged lines hidden (view full) --- 127#include "base/remote_gdb.hh" 128#include "base/socket.hh" 129#include "base/trace.hh" 130#include "config/the_isa.hh" 131#include "cpu/static_inst.hh" 132#include "cpu/thread_context.hh" 133#include "debug/GDBAll.hh" 134#include "mem/port.hh" |
135#include "mem/translating_port.hh" 136#include "mem/vport.hh" | 135#include "mem/fs_translating_port_proxy.hh" 136#include "mem/se_translating_port_proxy.hh" |
137#include "sim/full_system.hh" 138#include "sim/system.hh" 139 140using namespace std; 141using namespace Debug; 142using namespace TheISA; 143 144#ifndef NDEBUG --- 311 unchanged lines hidden (view full) --- 456 if (vaddr < 10) { 457 DPRINTF(GDBRead, "read: reading memory location zero!\n"); 458 vaddr = lastaddr + lastsize; 459 } 460 461 DPRINTF(GDBRead, "read: addr=%#x, size=%d", vaddr, size); 462 463 if (FullSystem) { | 137#include "sim/full_system.hh" 138#include "sim/system.hh" 139 140using namespace std; 141using namespace Debug; 142using namespace TheISA; 143 144#ifndef NDEBUG --- 311 unchanged lines hidden (view full) --- 456 if (vaddr < 10) { 457 DPRINTF(GDBRead, "read: reading memory location zero!\n"); 458 vaddr = lastaddr + lastsize; 459 } 460 461 DPRINTF(GDBRead, "read: addr=%#x, size=%d", vaddr, size); 462 463 if (FullSystem) { |
464 VirtualPort *port = context->getVirtPort(); | 464 FSTranslatingPortProxy *port = context->getVirtProxy(); |
465 port->readBlob(vaddr, (uint8_t*)data, size); 466 } else { | 465 port->readBlob(vaddr, (uint8_t*)data, size); 466 } else { |
467 TranslatingPort *port = context->getMemPort(); | 467 SETranslatingPortProxy *port = context->getMemProxy(); |
468 port->readBlob(vaddr, (uint8_t*)data, size); 469 } 470 471#if TRACING_ON 472 if (DTRACE(GDBRead)) { 473 if (DTRACE(GDBExtra)) { 474 char buf[1024]; 475 mem2hex(buf, data, size); --- 23 unchanged lines hidden (view full) --- 499 if (DTRACE(GDBExtra)) { 500 char buf[1024]; 501 mem2hex(buf, data, size); 502 DPRINTFNR(": %s\n", buf); 503 } else 504 DPRINTFNR("\n"); 505 } 506 if (FullSystem) { | 468 port->readBlob(vaddr, (uint8_t*)data, size); 469 } 470 471#if TRACING_ON 472 if (DTRACE(GDBRead)) { 473 if (DTRACE(GDBExtra)) { 474 char buf[1024]; 475 mem2hex(buf, data, size); --- 23 unchanged lines hidden (view full) --- 499 if (DTRACE(GDBExtra)) { 500 char buf[1024]; 501 mem2hex(buf, data, size); 502 DPRINTFNR(": %s\n", buf); 503 } else 504 DPRINTFNR("\n"); 505 } 506 if (FullSystem) { |
507 VirtualPort *port = context->getVirtPort(); | 507 FSTranslatingPortProxy *port = context->getVirtProxy(); |
508 port->writeBlob(vaddr, (uint8_t*)data, size); 509 } else { | 508 port->writeBlob(vaddr, (uint8_t*)data, size); 509 } else { |
510 TranslatingPort *port = context->getMemPort(); | 510 SETranslatingPortProxy *port = context->getMemProxy(); |
511 port->writeBlob(vaddr, (uint8_t*)data, size); 512 delete port; 513 } 514 515 return true; 516} 517 518PCEventQueue *BaseRemoteGDB::getPcEventQueue() --- 502 unchanged lines hidden --- | 511 port->writeBlob(vaddr, (uint8_t*)data, size); 512 delete port; 513 } 514 515 return true; 516} 517 518PCEventQueue *BaseRemoteGDB::getPcEventQueue() --- 502 unchanged lines hidden --- |