remote_gdb.cc (12449:2260f4a68210) remote_gdb.cc (12455:c88f0b37f433)
1/*
2 * Copyright 2015 LabWare
3 * Copyright 2014 Google, Inc.
4 * Copyright (c) 2002-2005 The Regents of The University of Michigan
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

--- 149 unchanged lines hidden (view full) ---

158//
159bool
160RemoteGDB::acc(Addr va, size_t len)
161{
162 //@Todo In NetBSD, this function checks if all addresses
163 // from va to va + len have valid page map entries. Not
164 // sure how this will work for other OSes or in general.
165 if (FullSystem) {
1/*
2 * Copyright 2015 LabWare
3 * Copyright 2014 Google, Inc.
4 * Copyright (c) 2002-2005 The Regents of The University of Michigan
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

--- 149 unchanged lines hidden (view full) ---

158//
159bool
160RemoteGDB::acc(Addr va, size_t len)
161{
162 //@Todo In NetBSD, this function checks if all addresses
163 // from va to va + len have valid page map entries. Not
164 // sure how this will work for other OSes or in general.
165 if (FullSystem) {
166 if (va)
167 return true;
168 return false;
166 return va != 0;
169 } else {
167 } else {
170 TlbEntry entry;
171 // Check to make sure the first byte is mapped into the processes
172 // address space.
168 // Check to make sure the first byte is mapped into the processes
169 // address space.
173 if (context()->getProcessPtr()->pTable->lookup(va, entry))
174 return true;
175 return false;
170 return context()->getProcessPtr()->pTable->lookup(va) != nullptr;
176 }
177}
178
179void
180RemoteGDB::SPARCGdbRegCache::getRegs(ThreadContext *context)
181{
182 DPRINTF(GDBAcc, "getRegs in remotegdb \n");
183 for (int i = 0; i < 32; i++) r.gpr[i] = htobe((uint32_t)context->readIntReg(i));

--- 73 unchanged lines hidden ---
171 }
172}
173
174void
175RemoteGDB::SPARCGdbRegCache::getRegs(ThreadContext *context)
176{
177 DPRINTF(GDBAcc, "getRegs in remotegdb \n");
178 for (int i = 0; i < 32; i++) r.gpr[i] = htobe((uint32_t)context->readIntReg(i));

--- 73 unchanged lines hidden ---