Deleted Added
sdiff udiff text old ( 10589:5962812f80fe ) new ( 10597:bd68c6838b9f )
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;
9 * redistributions in binary form must reproduce the above copyright

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

124#include <string>
125
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/the_isa.hh"
132#include "cpu/static_inst.hh"
133#include "cpu/thread_context.hh"
134#include "debug/GDBAll.hh"
135#include "mem/port.hh"
136#include "mem/fs_translating_port_proxy.hh"
137#include "mem/se_translating_port_proxy.hh"
138#include "sim/full_system.hh"
139#include "sim/system.hh"

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

241
242BaseRemoteGDB::Event::Event(BaseRemoteGDB *g, int fd, int e)
243 : PollEvent(fd, e), gdb(g)
244{}
245
246void
247BaseRemoteGDB::Event::process(int revent)
248{
249 if (revent & POLLIN)
250 gdb->trap(SIGILL);
251 else if (revent & POLLNVAL)
252 gdb->detach();
253}
254
255BaseRemoteGDB::BaseRemoteGDB(System *_system, ThreadContext *c, size_t cacheSize)
256 : event(NULL), listener(NULL), number(-1), fd(-1),
257 active(false), attached(false),
258 system(_system), context(c),
259 gdbregs(cacheSize)
260{
261 memset(gdbregs.regs, 0, gdbregs.bytes());
262}
263
264BaseRemoteGDB::~BaseRemoteGDB()

--- 763 unchanged lines hidden ---