Deleted Added
sdiff udiff text old ( 12449:2260f4a68210 ) new ( 12455:c88f0b37f433 )
full compact
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 return va != 0;
167 } else {
168 // Check to make sure the first byte is mapped into the processes
169 // address space.
170 return context()->getProcessPtr()->pTable->lookup(va) != nullptr;
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 ---