Fix printing entry when address and symbol are bad
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
b1256f9072
commit
1a80261170
9
main.py
9
main.py
|
@ -265,7 +265,14 @@ class Bear():
|
||||||
|
|
||||||
def pretty_print(self):
|
def pretty_print(self):
|
||||||
for entry in self.flat_list:
|
for entry in self.flat_list:
|
||||||
print('{address}\t{variable_name}'.format(address=entry['address'],
|
address = ''
|
||||||
|
if 'address' in entry:
|
||||||
|
address=entry['address']
|
||||||
|
|
||||||
|
if not address and entry['name'] == '?':
|
||||||
|
continue
|
||||||
|
|
||||||
|
print('{address}\t{variable_name}'.format(address=address,
|
||||||
variable_name=entry['name']))
|
variable_name=entry['name']))
|
||||||
|
|
||||||
def parse_location(self, die, attr):
|
def parse_location(self, die, attr):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user