Merge ktlim@zizzer.eecs.umich.edu:/bk/m5
[gem5.git] / base / remote_gdb.hh
index 62fd5285691969e5e0c34955d819b82b566bcbab..2ed368719037999ac15b644603dd405a8a6e2c3d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003 The Regents of The University of Michigan
+ * Copyright (c) 2002-2004 The Regents of The University of Michigan
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -115,10 +115,13 @@ class RemoteGDB
       private:
         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__ */