remote_gdb.cc (8544:2862c39f66f8) | remote_gdb.cc (8775:1e3ca5d77b53) |
---|---|
1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 123 unchanged lines hidden (view full) --- 132 133#include <sys/signal.h> 134#include <unistd.h> 135 136#include <string> 137 138#include "arch/mips/remote_gdb.hh" 139#include "arch/mips/vtophys.hh" | 1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 123 unchanged lines hidden (view full) --- 132 133#include <sys/signal.h> 134#include <unistd.h> 135 136#include <string> 137 138#include "arch/mips/remote_gdb.hh" 139#include "arch/mips/vtophys.hh" |
140#include "config/full_system.hh" | |
141#include "cpu/decode.hh" 142#include "cpu/thread_state.hh" 143#include "debug/GDBAcc.hh" 144#include "debug/GDBMisc.hh" 145#include "mem/page_table.hh" | 140#include "cpu/decode.hh" 141#include "cpu/thread_state.hh" 142#include "debug/GDBAcc.hh" 143#include "debug/GDBMisc.hh" 144#include "mem/page_table.hh" |
145#include "sim/full_system.hh" |
|
146 147using namespace std; 148using namespace MipsISA; 149 150RemoteGDB::RemoteGDB(System *_system, ThreadContext *tc) 151 : BaseRemoteGDB(_system, tc, GdbNumRegs) 152{ 153} 154 155/* 156 * Determine if the mapping at va..(va+len) is valid. 157 */ 158bool 159RemoteGDB::acc(Addr va, size_t len) 160{ | 146 147using namespace std; 148using namespace MipsISA; 149 150RemoteGDB::RemoteGDB(System *_system, ThreadContext *tc) 151 : BaseRemoteGDB(_system, tc, GdbNumRegs) 152{ 153} 154 155/* 156 * Determine if the mapping at va..(va+len) is valid. 157 */ 158bool 159RemoteGDB::acc(Addr va, size_t len) 160{ |
161#if FULL_SYSTEM 162 panic("acc not implemented for MIPS FS!"); 163#endif | |
164 TlbEntry entry; 165 //Check to make sure the first byte is mapped into the processes address 166 //space. | 161 TlbEntry entry; 162 //Check to make sure the first byte is mapped into the processes address 163 //space. |
167 return context->getProcessPtr()->pTable->lookup(va, entry); | 164 if (FullSystem) 165 panic("acc not implemented for MIPS FS!"); 166 else 167 return context->getProcessPtr()->pTable->lookup(va, entry); |
168} 169 170/* 171 * Translate the kernel debugger register format into the GDB register 172 * format. 173 */ 174void 175RemoteGDB::getregs() --- 124 unchanged lines hidden --- | 168} 169 170/* 171 * Translate the kernel debugger register format into the GDB register 172 * format. 173 */ 174void 175RemoteGDB::getregs() --- 124 unchanged lines hidden --- |