summaryrefslogtreecommitdiff
path: root/base/remote_gdb.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-02-03 10:50:04 -0500
committerNathan Binkert <binkertn@umich.edu>2004-02-03 10:50:04 -0500
commitb1221a3395495d99e988ee64a4bb93b5f3391292 (patch)
treeb701b670f9549c43d49bd2677b89899c5d07d3a5 /base/remote_gdb.hh
parent2f369ee5d59766750df7466e24a229f96d8faa09 (diff)
downloadgem5-b1221a3395495d99e988ee64a4bb93b5f3391292.tar.xz
Remote debugging cleanup and internal debugging support
base/kgdb.h: Remove flags that aren't used base/remote_gdb.cc: Better debugging: - Give each class a name() function so that the trace infrastructure knows the correct object name. - Make the remote debugger capable of detach. - Split out the RGDB trace flag into a bunch of specific flags. Remove dead code Add a new trap type base/remote_gdb.hh: Add a name() to the various objects for the trace system base/trace.hh: don't need a using directive add DPRINTFNR: debug printf, no flag, raw output kern/tru64/tru64_system.cc: use the INT trap type instead of IF --HG-- extra : convert_revision : 25e610216c6f43d5d328651bba915f71bade059e
Diffstat (limited to 'base/remote_gdb.hh')
-rw-r--r--base/remote_gdb.hh9
1 files changed, 8 insertions, 1 deletions
diff --git a/base/remote_gdb.hh b/base/remote_gdb.hh
index 62fd52856..fcc1ee2a9 100644
--- a/base/remote_gdb.hh
+++ b/base/remote_gdb.hh
@@ -116,9 +116,12 @@ class RemoteGDB
RemoteGDB *gdb;
public:
+ int refcount;
+
+ public:
HardBreakpoint(RemoteGDB *_gdb, Addr addr);
+ std::string name() { return gdb->name() + ".hwbkpt"; }
- int refcount;
virtual void process(ExecContext *xc);
};
friend class HardBreakpoint;
@@ -145,6 +148,9 @@ class RemoteGDB
void clearTempBreakpoint(TempBreakpoint &bkpt);
void setTempBreakpoint(TempBreakpoint &bkpt, Addr addr);
+
+ public:
+ std::string name();
};
template <class T>
@@ -188,6 +194,7 @@ class GDBListener
void accept();
void listen();
+ std::string name();
};
#endif /* __REMOTE_GDB_H__ */