Changeset b6d20a7 in mainline
- Timestamp:
- 2005-09-03T17:21:43Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4533601
- Parents:
- 6401f79
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/symtab.h
r6401f79 rb6d20a7 32 32 #include <arch/types.h> 33 33 34 #define MAX_SYMBOL_NAME 3234 #define MAX_SYMBOL_NAME 64 35 35 36 36 struct symtab_entry { -
src/debug/genmap.py
r6401f79 rb6d20a7 6 6 7 7 symline = re.compile(r'(0x[a-f0-9]+)\s+([^\s]+)$') 8 symtabfmt = "<Q32s" 9 MAXSTRING=31 8 fileline = re.compile(r'[^\s]+\s+0x[a-f0-9]+\s+0x[a-f0-9]+\s+([^\s]+\.o)$') 9 10 MAXSTRING=63 11 symtabfmt = "<Q%ds" % (MAXSTRING+1) 10 12 11 13 def read_symbols(inp): … … 18 20 19 21 symtable = {} 22 filename = '' 20 23 while 1: 21 24 line = inp.readline() … … 25 28 break 26 29 line = line.strip() 27 # Search only for symbols 30 # Search for file name 31 res = fileline.match(line) 32 if res: 33 filename = res.group(1) 34 # Search for symbols 28 35 res = symline.match(line) 29 36 if res: 30 symtable[int(res.group(1),16)] = res.group(2)37 symtable[int(res.group(1),16)] = filename + ':' + res.group(2) 31 38 return symtable 32 39
Note:
See TracChangeset
for help on using the changeset viewer.