summaryrefslogtreecommitdiff
path: root/base/loader/symtab.hh
diff options
context:
space:
mode:
Diffstat (limited to 'base/loader/symtab.hh')
-rw-r--r--base/loader/symtab.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/base/loader/symtab.hh b/base/loader/symtab.hh
index dce3c978e..324fd8b45 100644
--- a/base/loader/symtab.hh
+++ b/base/loader/symtab.hh
@@ -29,9 +29,12 @@
#ifndef __SYMTAB_HH__
#define __SYMTAB_HH__
+#include <iosfwd>
#include <map>
+
#include "targetarch/isa_traits.hh" // for Addr
+class Checkpoint;
class SymbolTable
{
public:
@@ -61,6 +64,7 @@ class SymbolTable
SymbolTable(const std::string &file) { load(file); }
~SymbolTable() {}
+ void clear();
bool insert(Addr address, std::string symbol);
bool load(const std::string &file);
@@ -68,6 +72,11 @@ class SymbolTable
const STable &getSymbolTable() const { return symbolTable; }
public:
+ void serialize(const std::string &base, std::ostream &os);
+ void unserialize(const std::string &base, Checkpoint *cp,
+ const std::string &section);
+
+ public:
bool
findSymbol(Addr address, std::string &symbol) const
{