summaryrefslogtreecommitdiff
path: root/other/Kermit/test/test_systemmap.cpp
blob: 41179c19203481da586ee0dc508352a3402ad0ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <SystemMap.hpp>
#include <string>
#include <iostream>


int main ()
{
  SystemMap a = SystemMap ("System.map");
  cout.setf (ios::hex, ios::basefield);

  cout << "sys_fork " << a[string ("sys_fork")] << endl;
  cout << "sys_write " << a[string ("sys_write")] << endl;
  cout << "init " << a[string ("init")] << endl;
  return 0;
}