Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'DW_AT_count' #8

Open
embedcat opened this issue Jul 18, 2023 · 0 comments
Open

KeyError: 'DW_AT_count' #8

embedcat opened this issue Jul 18, 2023 · 0 comments

Comments

@embedcat
Copy link

Using with arm-none-eabi-gcc, i have this error in multiple object files. For example:

# python frame_larger_than.py ../trunk/KitBox/build/obj/configuration_hash.o cfgHashCalc
cfgHashCalc:
Traceback (most recent call last):
  File "X:\Work\SVN\KitBox\frame-larger-than\frame_larger_than.py", line 216, in <module>
    parse_file(elffile.get_dwarf_info(), sys.argv[2])
  File "X:\Work\SVN\KitBox\frame-larger-than\frame_larger_than.py", line 194, in parse_file
    print_var(dwarf_info, DIE)
  File "X:\Work\SVN\KitBox\frame-larger-than\frame_larger_than.py", line 179, in print_var
    type_string = get_type_string(dwarf_info, type_info)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "X:\Work\SVN\KitBox\frame-larger-than\frame_larger_than.py", line 125, in get_type_string
    num_elements = get_array_count(type_info)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "X:\Work\SVN\KitBox\frame-larger-than\frame_larger_than.py", line 78, in get_array_count
    return child.attributes['DW_AT_count'].value
           ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'DW_AT_count'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant