remote_gdb.hh (3579:e9976b62c259) remote_gdb.hh (3960:1dca397b2bab)
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;

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

27 *
28 * Authors: Nathan Binkert
29 */
30
31#ifndef __REMOTE_GDB_HH__
32#define __REMOTE_GDB_HH__
33
34#include <map>
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;

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

27 *
28 * Authors: Nathan Binkert
29 */
30
31#ifndef __REMOTE_GDB_HH__
32#define __REMOTE_GDB_HH__
33
34#include <map>
35#include <sys/signal.h>
35
36#include "arch/types.hh"
37#include "cpu/pc_event.hh"
38#include "base/pollevent.hh"
39#include "base/socket.hh"
40
41class System;
42class ThreadContext;

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

172 void replaceThreadContext(ThreadContext *tc) { context = tc; }
173
174 void attach(int fd);
175 void detach();
176 bool isattached();
177
178 virtual bool acc(Addr addr, size_t len) = 0;
179 bool trap(int type);
36
37#include "arch/types.hh"
38#include "cpu/pc_event.hh"
39#include "base/pollevent.hh"
40#include "base/socket.hh"
41
42class System;
43class ThreadContext;

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

173 void replaceThreadContext(ThreadContext *tc) { context = tc; }
174
175 void attach(int fd);
176 void detach();
177 bool isattached();
178
179 virtual bool acc(Addr addr, size_t len) = 0;
180 bool trap(int type);
181 virtual bool breakpoint()
182 {
183 return trap(SIGTRAP);
184 }
180
181 protected:
182 virtual void getregs() = 0;
183 virtual void setregs() = 0;
184
185 virtual void clearSingleStep() = 0;
186 virtual void setSingleStep() = 0;
187

--- 81 unchanged lines hidden ---
185
186 protected:
187 virtual void getregs() = 0;
188 virtual void setregs() = 0;
189
190 virtual void clearSingleStep() = 0;
191 virtual void setSingleStep() = 0;
192

--- 81 unchanged lines hidden ---