A parser for DWARF files.
More...
|
def | __init__ (self) |
|
def | resolve (self, memb) |
| Lookup anonymouse member and replace it with a well known one. More...
|
|
def | resolve_refs (self) |
| Replace references with types. More...
|
|
def | deep_replace (self, t, search, repl) |
| Recursively replace anonymous references. More...
|
|
def | get_deepest (self, t) |
|
def | base_type_name (self, data) |
| Replace references to base types. More...
|
|
def | feed_line (self, line) |
|
def | process_statement (self, kind, level, data, statement_id) |
| Process a single parsed statement. More...
|
|
def | process_variable (self, data) |
|
def | finalize (self) |
| Finalize the output. More...
|
|
def | print_output (self) |
|
|
| current_level |
|
| name_stack |
|
| id_to_name |
|
| all_vtypes |
|
| vtypes |
|
| enums |
|
| all_vars |
|
| vars |
|
| all_local_vars |
|
| local_vars |
|
| anons |
|
|
tuple | dwarf_header_regex |
|
tuple | dwarf_key_val_regex |
|
dictionary | sz2tp = {8: 'long long', 4: 'long', 2: 'short', 1: 'char'} |
|
dictionary | tp2vol |
|
A parser for DWARF files.
def convert.DWARFParser.base_type_name |
( |
|
self, |
|
|
|
data |
|
) |
| |
Replace references to base types.
def convert.DWARFParser.deep_replace |
( |
|
self, |
|
|
|
t, |
|
|
|
search, |
|
|
|
repl |
|
) |
| |
Recursively replace anonymous references.
def convert.DWARFParser.finalize |
( |
|
self | ) |
|
def convert.DWARFParser.process_statement |
( |
|
self, |
|
|
|
kind, |
|
|
|
level, |
|
|
|
data, |
|
|
|
statement_id |
|
) |
| |
Process a single parsed statement.
def convert.DWARFParser.resolve |
( |
|
self, |
|
|
|
memb |
|
) |
| |
Lookup anonymouse member and replace it with a well known one.
def convert.DWARFParser.resolve_refs |
( |
|
self | ) |
|
Replace references with types.
tuple convert.DWARFParser.dwarf_header_regex |
|
static |
Initial value:
2 r'<(?P<level>\d+)><(?P<statement_id>[0-9+]+)><(?P<kind>\w+)>')
tuple convert.DWARFParser.dwarf_key_val_regex |
|
static |
Initial value:
2 '\s*(?P<keyname>\w+)<(?P<val>[^>]*)>')
dictionary convert.DWARFParser.tp2vol |
|
static |
Initial value:
2 'sizetype' :
'long long',
4 '_Bool':
'unsigned char',
8 'long double':
'double',
11 'long long int':
'long long',
12 'long long unsigned int':
'unsigned long long',
13 'long unsigned int':
'unsigned long',
15 'short unsigned int':
'unsigned short',
16 'unsigned short' :
'unsigned short',
18 'signed char':
'signed char',
19 'unsigned char':
'unsigned char',
20 'unsigned int':
'unsigned int',
The documentation for this class was generated from the following file: