Deleted Added
sdiff udiff text old ( 3579:e9976b62c259 ) new ( 3961:42374ae36922 )
full compact
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

116 * "Stub" to allow remote cpu to debug over a serial line using gdb.
117 */
118
119#include <sys/signal.h>
120
121#include <string>
122#include <unistd.h>
123
124#include "arch/alpha/kgdb.h"
125#include "arch/alpha/remote_gdb.hh"
126#include "arch/vtophys.hh"
127#include "base/intmath.hh"
128#include "base/remote_gdb.hh"
129#include "base/socket.hh"
130#include "base/trace.hh"
131#include "config/full_system.hh"
132#include "cpu/thread_context.hh"
133#include "cpu/static_inst.hh"
134#include "mem/physical.hh"
135#include "mem/port.hh"
136#include "sim/system.hh"
137
138using namespace std;
139using namespace TheISA;

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

147///////////////////////////////////////////////////////////
148// RemoteGDB::acc
149//
150// Determine if the mapping at va..(va+len) is valid.
151//
152bool
153RemoteGDB::acc(Addr va, size_t len)
154{
155 Addr last_va;
156
157 va = TheISA::TruncPage(va);
158 last_va = TheISA::RoundPage(va + len);
159
160 do {
161 if (TheISA::IsK0Seg(va)) {
162 if (va < (TheISA::K0SegBase + pmem->size())) {

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

186 DPRINTF(GDBAcc, "acc: %#x pte is invalid\n", va);
187 return false;
188 }
189 va += TheISA::PageBytes;
190 } while (va < last_va);
191
192 DPRINTF(GDBAcc, "acc: %#x mapping is valid\n", va);
193 return true;
194}
195
196///////////////////////////////////////////////////////////
197// RemoteGDB::getregs
198//
199// Translate the kernel debugger register format into
200// the GDB register format.
201void

--- 108 unchanged lines hidden ---