diff --git a/main.py b/main.py index 8b8e953..8cb9d7e 100644 --- a/main.py +++ b/main.py @@ -265,7 +265,14 @@ class Bear(): def pretty_print(self): 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'])) def parse_location(self, die, attr):