remote_gdb.cc (11793:ef606668d247) | remote_gdb.cc (12031:46116545e745) |
---|---|
1/* 2 * Copyright 2015 LabWare 3 * Copyright 2014 Google, Inc. 4 * Copyright (c) 2007 The Hewlett-Packard Development Company 5 * All rights reserved. 6 * 7 * The license below extends only to copyright in the software and shall 8 * not be construed as granting a license to any other intellectual --- 51 unchanged lines hidden (view full) --- 60#include "debug/GDBAcc.hh" 61#include "mem/page_table.hh" 62#include "sim/full_system.hh" 63 64using namespace std; 65using namespace X86ISA; 66 67RemoteGDB::RemoteGDB(System *_system, ThreadContext *c) : | 1/* 2 * Copyright 2015 LabWare 3 * Copyright 2014 Google, Inc. 4 * Copyright (c) 2007 The Hewlett-Packard Development Company 5 * All rights reserved. 6 * 7 * The license below extends only to copyright in the software and shall 8 * not be construed as granting a license to any other intellectual --- 51 unchanged lines hidden (view full) --- 60#include "debug/GDBAcc.hh" 61#include "mem/page_table.hh" 62#include "sim/full_system.hh" 63 64using namespace std; 65using namespace X86ISA; 66 67RemoteGDB::RemoteGDB(System *_system, ThreadContext *c) : |
68 BaseRemoteGDB(_system, c) | 68 BaseRemoteGDB(_system, c), regCache32(this), regCache64(this) |
69{} 70 71bool 72RemoteGDB::acc(Addr va, size_t len) 73{ 74 if (FullSystem) { 75 Walker *walker = context->getDTBPtr()->getWalker(); 76 unsigned logBytes; --- 15 unchanged lines hidden (view full) --- 92 } 93} 94 95RemoteGDB::BaseGdbRegCache* 96RemoteGDB::gdbRegs() 97{ 98 HandyM5Reg m5reg = context->readMiscRegNoEffect(MISCREG_M5_REG); 99 if (m5reg.submode == SixtyFourBitMode) | 69{} 70 71bool 72RemoteGDB::acc(Addr va, size_t len) 73{ 74 if (FullSystem) { 75 Walker *walker = context->getDTBPtr()->getWalker(); 76 unsigned logBytes; --- 15 unchanged lines hidden (view full) --- 92 } 93} 94 95RemoteGDB::BaseGdbRegCache* 96RemoteGDB::gdbRegs() 97{ 98 HandyM5Reg m5reg = context->readMiscRegNoEffect(MISCREG_M5_REG); 99 if (m5reg.submode == SixtyFourBitMode) |
100 return new AMD64GdbRegCache(this); | 100 return ®Cache64; |
101 else | 101 else |
102 return new X86GdbRegCache(this); | 102 return ®Cache32; |
103} 104 105 106 107void 108RemoteGDB::AMD64GdbRegCache::getRegs(ThreadContext *context) 109{ 110 DPRINTF(GDBAcc, "getRegs in remotegdb \n"); --- 111 unchanged lines hidden --- | 103} 104 105 106 107void 108RemoteGDB::AMD64GdbRegCache::getRegs(ThreadContext *context) 109{ 110 DPRINTF(GDBAcc, "getRegs in remotegdb \n"); --- 111 unchanged lines hidden --- |