remote_gdb.cc revision 10037
16892SBrad.Beckmann@amd.com/* 26892SBrad.Beckmann@amd.com * Copyright (c) 2010, 2013 ARM Limited 36892SBrad.Beckmann@amd.com * All rights reserved 46892SBrad.Beckmann@amd.com * 56892SBrad.Beckmann@amd.com * The license below extends only to copyright in the software and shall 66892SBrad.Beckmann@amd.com * not be construed as granting a license to any other intellectual 76892SBrad.Beckmann@amd.com * property including but not limited to intellectual property relating 86892SBrad.Beckmann@amd.com * to a hardware implementation of the functionality of the software 96892SBrad.Beckmann@amd.com * licensed hereunder. You may use the software subject to the license 106892SBrad.Beckmann@amd.com * terms below provided that you ensure that this notice is replicated 116892SBrad.Beckmann@amd.com * unmodified and in its entirety in all distributions of the software, 126892SBrad.Beckmann@amd.com * modified or unmodified, in source code or in binary form. 136892SBrad.Beckmann@amd.com * 146892SBrad.Beckmann@amd.com * Copyright (c) 2002-2005 The Regents of The University of Michigan 156892SBrad.Beckmann@amd.com * All rights reserved. 166892SBrad.Beckmann@amd.com * 176892SBrad.Beckmann@amd.com * Redistribution and use in source and binary forms, with or without 186892SBrad.Beckmann@amd.com * modification, are permitted provided that the following conditions are 196892SBrad.Beckmann@amd.com * met: redistributions of source code must retain the above copyright 206892SBrad.Beckmann@amd.com * notice, this list of conditions and the following disclaimer; 216892SBrad.Beckmann@amd.com * redistributions in binary form must reproduce the above copyright 226892SBrad.Beckmann@amd.com * notice, this list of conditions and the following disclaimer in the 236892SBrad.Beckmann@amd.com * documentation and/or other materials provided with the distribution; 246892SBrad.Beckmann@amd.com * neither the name of the copyright holders nor the names of its 256892SBrad.Beckmann@amd.com * contributors may be used to endorse or promote products derived from 266892SBrad.Beckmann@amd.com * this software without specific prior written permission. 276892SBrad.Beckmann@amd.com * 286892SBrad.Beckmann@amd.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 296892SBrad.Beckmann@amd.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 307563SBrad.Beckmann@amd.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 316892SBrad.Beckmann@amd.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 326892SBrad.Beckmann@amd.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 336892SBrad.Beckmann@amd.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 346892SBrad.Beckmann@amd.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 357538SBrad.Beckmann@amd.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 367538SBrad.Beckmann@amd.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 377538SBrad.Beckmann@amd.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 387538SBrad.Beckmann@amd.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 397538SBrad.Beckmann@amd.com * 407538SBrad.Beckmann@amd.com * Authors: Nathan Binkert 417661Snate@binkert.org * William Wang 427538SBrad.Beckmann@amd.com */ 438612Stushar@csail.mit.edu 448612Stushar@csail.mit.edu/* 457538SBrad.Beckmann@amd.com * Copyright (c) 1990, 1993 The Regents of the University of California 467538SBrad.Beckmann@amd.com * All rights reserved 477917SBrad.Beckmann@amd.com * 487563SBrad.Beckmann@amd.com * This software was developed by the Computer Systems Engineering group 497563SBrad.Beckmann@amd.com * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 507538SBrad.Beckmann@amd.com * contributed to Berkeley. 517538SBrad.Beckmann@amd.com * 527538SBrad.Beckmann@amd.com * All advertising materials mentioning features or use of this software 537538SBrad.Beckmann@amd.com * must display the following acknowledgement: 547538SBrad.Beckmann@amd.com * This product includes software developed by the University of 557566SBrad.Beckmann@amd.com * California, Lawrence Berkeley Laboratories. 567566SBrad.Beckmann@amd.com * 577809Snilay@cs.wisc.edu * Redistribution and use in source and binary forms, with or without 587809Snilay@cs.wisc.edu * modification, are permitted provided that the following conditions 597809Snilay@cs.wisc.edu * are met: 607809Snilay@cs.wisc.edu * 1. Redistributions of source code must retain the above copyright 617538SBrad.Beckmann@amd.com * notice, this list of conditions and the following disclaimer. 627538SBrad.Beckmann@amd.com * 2. Redistributions in binary form must reproduce the above copyright 637538SBrad.Beckmann@amd.com * notice, this list of conditions and the following disclaimer in the 647538SBrad.Beckmann@amd.com * documentation and/or other materials provided with the distribution. 657541SBrad.Beckmann@amd.com * 3. All advertising materials mentioning features or use of this software 666892SBrad.Beckmann@amd.com * must display the following acknowledgement: 678436SBrad.Beckmann@amd.com * This product includes software developed by the University of 688436SBrad.Beckmann@amd.com * California, Berkeley and its contributors. 698436SBrad.Beckmann@amd.com * 4. Neither the name of the University nor the names of its contributors 707032SBrad.Beckmann@amd.com * may be used to endorse or promote products derived from this software 717032SBrad.Beckmann@amd.com * without specific prior written permission. 726923SBrad.Beckmann@amd.com * 736893SBrad.Beckmann@amd.com * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 748436SBrad.Beckmann@amd.com * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 758436SBrad.Beckmann@amd.com * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 767557SBrad.Beckmann@amd.com * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 776923SBrad.Beckmann@amd.com * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 786923SBrad.Beckmann@amd.com * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 797557SBrad.Beckmann@amd.com * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 808257SBrad.Beckmann@amd.com * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 818257SBrad.Beckmann@amd.com * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 828257SBrad.Beckmann@amd.com * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 838257SBrad.Beckmann@amd.com * SUCH DAMAGE. 848257SBrad.Beckmann@amd.com * 858257SBrad.Beckmann@amd.com * @(#)kgdb_stub.c 8.4 (Berkeley) 1/12/94 868257SBrad.Beckmann@amd.com */ 878257SBrad.Beckmann@amd.com 888257SBrad.Beckmann@amd.com/*- 898257SBrad.Beckmann@amd.com * Copyright (c) 2001 The NetBSD Foundation, Inc. 908257SBrad.Beckmann@amd.com * All rights reserved. 918257SBrad.Beckmann@amd.com * 928257SBrad.Beckmann@amd.com * This code is derived from software contributed to The NetBSD Foundation 938257SBrad.Beckmann@amd.com * by Jason R. Thorpe. 948257SBrad.Beckmann@amd.com * 958257SBrad.Beckmann@amd.com * Redistribution and use in source and binary forms, with or without 968258SBrad.Beckmann@amd.com * modification, are permitted provided that the following conditions 978258SBrad.Beckmann@amd.com * are met: 988257SBrad.Beckmann@amd.com * 1. Redistributions of source code must retain the above copyright 998257SBrad.Beckmann@amd.com * notice, this list of conditions and the following disclaimer. 1006892SBrad.Beckmann@amd.com * 2. Redistributions in binary form must reproduce the above copyright 1017032SBrad.Beckmann@amd.com * notice, this list of conditions and the following disclaimer in the 1027032SBrad.Beckmann@amd.com * documentation and/or other materials provided with the distribution. 1036892SBrad.Beckmann@amd.com * 3. All advertising materials mentioning features or use of this software 1047032SBrad.Beckmann@amd.com * must display the following acknowledgement: 1057032SBrad.Beckmann@amd.com * This product includes software developed by the NetBSD 1068257SBrad.Beckmann@amd.com * Foundation, Inc. and its contributors. 1078257SBrad.Beckmann@amd.com * 4. Neither the name of The NetBSD Foundation nor the names of its 1088257SBrad.Beckmann@amd.com * contributors may be used to endorse or promote products derived 1097557SBrad.Beckmann@amd.com * from this software without specific prior written permission. 1107032SBrad.Beckmann@amd.com * 1117032SBrad.Beckmann@amd.com * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 1127557SBrad.Beckmann@amd.com * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 1138257SBrad.Beckmann@amd.com * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1148612Stushar@csail.mit.edu * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 1158612Stushar@csail.mit.edu * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 1168612Stushar@csail.mit.edu * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 1178612Stushar@csail.mit.edu * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 1188612Stushar@csail.mit.edu * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 1198612Stushar@csail.mit.edu * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 1208612Stushar@csail.mit.edu * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 1216892SBrad.Beckmann@amd.com * POSSIBILITY OF SUCH DAMAGE. 1226903SBrad.Beckmann@amd.com */ 1237563SBrad.Beckmann@amd.com 1247025SBrad.Beckmann@amd.com/* 1257025SBrad.Beckmann@amd.com * $NetBSD: kgdb_stub.c,v 1.8 2001/07/07 22:58:00 wdk Exp $ 1267025SBrad.Beckmann@amd.com * 1277025SBrad.Beckmann@amd.com * Taken from NetBSD 1287563SBrad.Beckmann@amd.com * 1296903SBrad.Beckmann@amd.com * "Stub" to allow remote cpu to debug over a serial line using gdb. 1306903SBrad.Beckmann@amd.com */ 1317563SBrad.Beckmann@amd.com 1327563SBrad.Beckmann@amd.com#include <sys/signal.h> 1337563SBrad.Beckmann@amd.com#include <unistd.h> 1347563SBrad.Beckmann@amd.com 1357563SBrad.Beckmann@amd.com#include <string> 1367563SBrad.Beckmann@amd.com 1377563SBrad.Beckmann@amd.com#include "arch/arm/decoder.hh" 1387663SBrad.Beckmann@amd.com#include "arch/arm/pagetable.hh" 1397663SBrad.Beckmann@amd.com#include "arch/arm/registers.hh" 1407663SBrad.Beckmann@amd.com#include "arch/arm/remote_gdb.hh" 1417663SBrad.Beckmann@amd.com#include "arch/arm/system.hh" 1427663SBrad.Beckmann@amd.com#include "arch/arm/utility.hh" 1437563SBrad.Beckmann@amd.com#include "arch/arm/vtophys.hh" 1446903SBrad.Beckmann@amd.com#include "base/intmath.hh" 1456903SBrad.Beckmann@amd.com#include "base/remote_gdb.hh" 1467563SBrad.Beckmann@amd.com#include "base/socket.hh" 1477563SBrad.Beckmann@amd.com#include "base/trace.hh" 1487541SBrad.Beckmann@amd.com#include "cpu/static_inst.hh" 1497541SBrad.Beckmann@amd.com#include "cpu/thread_context.hh" 1506905SBrad.Beckmann@amd.com#include "cpu/thread_state.hh" 1516892SBrad.Beckmann@amd.com#include "debug/GDBAcc.hh" 1528436SBrad.Beckmann@amd.com#include "debug/GDBMisc.hh" 1538436SBrad.Beckmann@amd.com#include "mem/page_table.hh" 1548436SBrad.Beckmann@amd.com#include "mem/physical.hh" 1556892SBrad.Beckmann@amd.com#include "mem/port.hh" 1568436SBrad.Beckmann@amd.com#include "sim/full_system.hh" 1578436SBrad.Beckmann@amd.com#include "sim/system.hh" 1588436SBrad.Beckmann@amd.com 1598436SBrad.Beckmann@amd.comusing namespace std; 1608322Ssteve.reinhardt@amd.comusing namespace ArmISA; 1617809Snilay@cs.wisc.edu 162RemoteGDB::RemoteGDB(System *_system, ThreadContext *tc) 163 : BaseRemoteGDB(_system, tc, MAX_NUMREGS) 164{ 165} 166 167/* 168 * Determine if the mapping at va..(va+len) is valid. 169 */ 170bool 171RemoteGDB::acc(Addr va, size_t len) 172{ 173 if (FullSystem) { 174 Addr last_va; 175 va = truncPage(va); 176 last_va = roundPage(va + len); 177 178 do { 179 if (virtvalid(context, va)) { 180 return true; 181 } 182 va += PageBytes; 183 } while (va < last_va); 184 185 DPRINTF(GDBAcc, "acc: %#x mapping is valid\n", va); 186 return true; 187 } else { 188 TlbEntry entry; 189 //Check to make sure the first byte is mapped into the processes address 190 //space. 191 if (context->getProcessPtr()->pTable->lookup(va, entry)) 192 return true; 193 return false; 194 } 195} 196 197/* 198 * Translate the kernel debugger register format into the GDB register 199 * format. 200 */ 201void 202RemoteGDB::getregs() 203{ 204 DPRINTF(GDBAcc, "getregs in remotegdb \n"); 205 206 memset(gdbregs.regs, 0, gdbregs.bytes()); 207 208 if (inAArch64(context)) { // AArch64 209 // x0-x31 210 for (int i = 0; i < 32; ++i) { 211 gdbregs.regs[REG_X0 + i] = context->readIntReg(INTREG_X0 + i); 212 } 213 // pc 214 gdbregs.regs[REG_PC_64] = context->pcState().pc(); 215 // cpsr 216 gdbregs.regs[REG_CPSR_64] = context->readMiscRegNoEffect(MISCREG_CPSR); 217 // v0-v31 218 for (int i = 0; i < 32; ++i) { 219 gdbregs.regs[REG_V0 + 2 * i] = static_cast<uint64_t>( 220 context->readFloatRegBits(i * 4 + 3)) << 32 | 221 context->readFloatRegBits(i * 4 + 2); 222 gdbregs.regs[REG_V0 + 2 * i + 1] = static_cast<uint64_t>( 223 context->readFloatRegBits(i * 4 + 1)) << 32 | 224 context->readFloatRegBits(i * 4 + 0); 225 } 226 } else { // AArch32 227 // R0-R15 supervisor mode 228 // arm registers are 32 bits wide, gdb registers are 64 bits wide two 229 // arm registers are packed into one gdb register (little endian) 230 gdbregs.regs[REG_R0 + 0] = context->readIntReg(INTREG_R1) << 32 | 231 context->readIntReg(INTREG_R0); 232 gdbregs.regs[REG_R0 + 1] = context->readIntReg(INTREG_R3) << 32 | 233 context->readIntReg(INTREG_R2); 234 gdbregs.regs[REG_R0 + 2] = context->readIntReg(INTREG_R5) << 32 | 235 context->readIntReg(INTREG_R4); 236 gdbregs.regs[REG_R0 + 3] = context->readIntReg(INTREG_R7) << 32 | 237 context->readIntReg(INTREG_R6); 238 gdbregs.regs[REG_R0 + 4] = context->readIntReg(INTREG_R9) << 32 | 239 context->readIntReg(INTREG_R8); 240 gdbregs.regs[REG_R0 + 5] = context->readIntReg(INTREG_R11) << 32| 241 context->readIntReg(INTREG_R10); 242 gdbregs.regs[REG_R0 + 6] = context->readIntReg(INTREG_SP) << 32 | 243 context->readIntReg(INTREG_R12); 244 gdbregs.regs[REG_R0 + 7] = context->pcState().pc() << 32 | 245 context->readIntReg(INTREG_LR); 246 247 // CPSR 248 gdbregs.regs[REG_CPSR] = context->readMiscRegNoEffect(MISCREG_CPSR); 249 250 // vfpv3/neon floating point registers (32 double or 64 float) 251 252 gdbregs.regs[REG_F0] = 253 static_cast<uint64_t>(context->readFloatRegBits(0)) << 32 | 254 gdbregs.regs[REG_CPSR]; 255 256 for (int i = 1; i < (NumFloatV7ArchRegs>>1); ++i) { 257 gdbregs.regs[i + REG_F0] = 258 static_cast<uint64_t>(context->readFloatRegBits(2*i)) << 32 | 259 context->readFloatRegBits(2*i-1); 260 } 261 262 // FPSCR 263 gdbregs.regs[REG_FPSCR] = static_cast<uint64_t>( 264 context->readMiscRegNoEffect(MISCREG_FPSCR)) << 32 | 265 context->readFloatRegBits(NumFloatV7ArchRegs - 1); 266 } 267} 268 269/* 270 * Translate the GDB register format into the kernel debugger register 271 * format. 272 */ 273void 274RemoteGDB::setregs() 275{ 276 277 DPRINTF(GDBAcc, "setregs in remotegdb \n"); 278 if (inAArch64(context)) { // AArch64 279 // x0-x31 280 for (int i = 0; i < 32; ++i) { 281 context->setIntReg(INTREG_X0 + i, gdbregs.regs[REG_X0 + i]); 282 } 283 // pc 284 context->pcState(gdbregs.regs[REG_PC_64]); 285 // cpsr 286 context->setMiscRegNoEffect(MISCREG_CPSR, gdbregs.regs[REG_CPSR_64]); 287 // v0-v31 288 for (int i = 0; i < 32; ++i) { 289 context->setFloatRegBits(i * 4 + 3, 290 gdbregs.regs[REG_V0 + 2 * i] >> 32); 291 context->setFloatRegBits(i * 4 + 2, 292 gdbregs.regs[REG_V0 + 2 * i]); 293 context->setFloatRegBits(i * 4 + 1, 294 gdbregs.regs[REG_V0 + 2 * i + 1] >> 32); 295 context->setFloatRegBits(i * 4 + 0, 296 gdbregs.regs[REG_V0 + 2 * i + 1]); 297 } 298 } else { // AArch32 299 // R0-R15 supervisor mode 300 // arm registers are 32 bits wide, gdb registers are 64 bits wide 301 // two arm registers are packed into one gdb register (little endian) 302 context->setIntReg(INTREG_R0 , bits(gdbregs.regs[REG_R0 + 0], 31, 0)); 303 context->setIntReg(INTREG_R1 , bits(gdbregs.regs[REG_R0 + 0], 63, 32)); 304 context->setIntReg(INTREG_R2 , bits(gdbregs.regs[REG_R0 + 1], 31, 0)); 305 context->setIntReg(INTREG_R3 , bits(gdbregs.regs[REG_R0 + 1], 63, 32)); 306 context->setIntReg(INTREG_R4 , bits(gdbregs.regs[REG_R0 + 2], 31, 0)); 307 context->setIntReg(INTREG_R5 , bits(gdbregs.regs[REG_R0 + 2], 63, 32)); 308 context->setIntReg(INTREG_R6 , bits(gdbregs.regs[REG_R0 + 3], 31, 0)); 309 context->setIntReg(INTREG_R7 , bits(gdbregs.regs[REG_R0 + 3], 63, 32)); 310 context->setIntReg(INTREG_R8 , bits(gdbregs.regs[REG_R0 + 4], 31, 0)); 311 context->setIntReg(INTREG_R9 , bits(gdbregs.regs[REG_R0 + 4], 63, 32)); 312 context->setIntReg(INTREG_R10, bits(gdbregs.regs[REG_R0 + 5], 31, 0)); 313 context->setIntReg(INTREG_R11, bits(gdbregs.regs[REG_R0 + 5], 63, 32)); 314 context->setIntReg(INTREG_R12, bits(gdbregs.regs[REG_R0 + 6], 31, 0)); 315 context->setIntReg(INTREG_SP , bits(gdbregs.regs[REG_R0 + 6], 63, 32)); 316 context->setIntReg(INTREG_LR , bits(gdbregs.regs[REG_R0 + 7], 31, 0)); 317 context->pcState(bits(gdbregs.regs[REG_R0 + 7], 63, 32)); 318 319 //CPSR 320 context->setMiscRegNoEffect(MISCREG_CPSR, gdbregs.regs[REG_CPSR]); 321 322 //vfpv3/neon floating point registers (32 double or 64 float) 323 context->setFloatRegBits(0, gdbregs.regs[REG_F0]>>32); 324 325 for (int i = 1; i < NumFloatV7ArchRegs; ++i) { 326 if (i%2) { 327 int j = (i+1)/2; 328 context->setFloatRegBits(i, bits(gdbregs.regs[j + REG_F0], 31, 0)); 329 } else { 330 int j = i/2; 331 context->setFloatRegBits(i, gdbregs.regs[j + REG_F0]>>32); 332 } 333 } 334 335 //FPSCR 336 context->setMiscReg(MISCREG_FPSCR, gdbregs.regs[REG_FPSCR]>>32); 337 } 338} 339 340void 341RemoteGDB::clearSingleStep() 342{ 343 DPRINTF(GDBMisc, "clearSingleStep bt_addr=%#x nt_addr=%#x\n", 344 takenBkpt, notTakenBkpt); 345 346 if (takenBkpt != 0) 347 clearTempBreakpoint(takenBkpt); 348 349 if (notTakenBkpt != 0) 350 clearTempBreakpoint(notTakenBkpt); 351} 352 353void 354RemoteGDB::setSingleStep() 355{ 356 PCState pc = context->pcState(); 357 PCState bpc; 358 bool set_bt = false; 359 360 // User was stopped at pc, e.g. the instruction at pc was not 361 // executed. 362 MachInst inst = read<MachInst>(pc.pc()); 363 StaticInstPtr si = context->getDecoderPtr()->decode(inst, pc.pc()); 364 if (si->hasBranchTarget(pc, context, bpc)) { 365 // Don't bother setting a breakpoint on the taken branch if it 366 // is the same as the next pc 367 if (bpc.pc() != pc.npc()) 368 set_bt = true; 369 } 370 371 DPRINTF(GDBMisc, "setSingleStep bt_addr=%#x nt_addr=%#x\n", 372 takenBkpt, notTakenBkpt); 373 374 setTempBreakpoint(notTakenBkpt = pc.npc()); 375 376 if (set_bt) 377 setTempBreakpoint(takenBkpt = bpc.pc()); 378} 379 380// Write bytes to kernel address space for debugger. 381bool 382RemoteGDB::write(Addr vaddr, size_t size, const char *data) 383{ 384 return BaseRemoteGDB::write(vaddr, size, data); 385} 386 387