summaryrefslogtreecommitdiff
path: root/other/Kermit/test/test_symboltable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'other/Kermit/test/test_symboltable.cpp')
-rw-r--r--other/Kermit/test/test_symboltable.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/other/Kermit/test/test_symboltable.cpp b/other/Kermit/test/test_symboltable.cpp
new file mode 100644
index 0000000..fac5d05
--- /dev/null
+++ b/other/Kermit/test/test_symboltable.cpp
@@ -0,0 +1,28 @@
1#include <SymbolTable.hpp>
2#include <string>
3
4/*
5 * default files:
6 * System.map
7 * SymbolFind.conf
8 * SymbolTableDump
9 */
10int main ()
11{
12 unsigned int x = 0;
13 SymbolTable *a = NULL;
14
15 cout.setf (ios::hex, ios::basefield);
16 a = new SymbolTable ();
17
18 cout << "Starting ..." << endl;
19 x = a->getSymbol (string ("sys_exit"));
20 cout << "x = " << x << endl;
21
22 cout << a->findSymbol (string ("sys_exit")) << endl;
23
24 x = a->getSymbol (string ("sys_exit"));
25 cout << "x = " << x << endl;
26 return 0;
27}
28