Changeset b6d20a7 in mainline


Ignore:
Timestamp:
2005-09-03T17:21:43Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4533601
Parents:
6401f79
Message:

Symbols now include filename

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/symtab.h

    r6401f79 rb6d20a7  
    3232#include <arch/types.h>
    3333
    34 #define MAX_SYMBOL_NAME 32
     34#define MAX_SYMBOL_NAME 64
    3535
    3636struct symtab_entry {
  • src/debug/genmap.py

    r6401f79 rb6d20a7  
    66
    77symline = re.compile(r'(0x[a-f0-9]+)\s+([^\s]+)$')
    8 symtabfmt = "<Q32s"
    9 MAXSTRING=31
     8fileline = re.compile(r'[^\s]+\s+0x[a-f0-9]+\s+0x[a-f0-9]+\s+([^\s]+\.o)$')
     9
     10MAXSTRING=63
     11symtabfmt = "<Q%ds" % (MAXSTRING+1)
    1012
    1113def read_symbols(inp):
     
    1820
    1921    symtable = {}
     22    filename = ''
    2023    while 1:
    2124        line = inp.readline()
     
    2528            break
    2629        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
    2835        res = symline.match(line)
    2936        if res:
    30             symtable[int(res.group(1),16)] = res.group(2)
     37            symtable[int(res.group(1),16)] = filename + ':' + res.group(2)
    3138    return symtable
    3239   
Note: See TracChangeset for help on using the changeset viewer.