From c9cbeced5b3f2bdd7407e29c0811e65954132540 Mon Sep 17 00:00:00 2001 From: Root THC Date: Tue, 24 Feb 2026 12:42:47 +0000 Subject: initial --- other/Kermit/test/test_symboltable.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 other/Kermit/test/test_symboltable.cpp (limited to 'other/Kermit/test/test_symboltable.cpp') 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 @@ +#include +#include + +/* + * default files: + * System.map + * SymbolFind.conf + * SymbolTableDump + */ +int main () +{ + unsigned int x = 0; + SymbolTable *a = NULL; + + cout.setf (ios::hex, ios::basefield); + a = new SymbolTable (); + + cout << "Starting ..." << endl; + x = a->getSymbol (string ("sys_exit")); + cout << "x = " << x << endl; + + cout << a->findSymbol (string ("sys_exit")) << endl; + + x = a->getSymbol (string ("sys_exit")); + cout << "x = " << x << endl; + return 0; +} + -- cgit v1.3