Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #! /usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3.  
  4. # Launch this in following way:
  5. # readelf --syms <file> | sysmbold2bdg.py ><file.dbg>
  6.  
  7. #8: 00000004     4 OBJECT  GLOBAL DEFAULT  COM main_group_list
  8.  
  9. # Skip 3 lines
  10. input()
  11. input()
  12. input()
  13.  
  14. while True:
  15.         try:
  16.                 s = input().split()
  17.         except:
  18.                 break
  19.         try:
  20.                 print('0x'+s[1], s[7])
  21.         except:
  22.                 pass
  23.