-
Notifications
You must be signed in to change notification settings - Fork 497
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
Error trying to obtain dwarf info: 'structs' is not defined #22
Comments
This problem also happens with the ELF files generated by armcc/armlink tools. In _translate_attr_value, the local "structs" variable isn't initialized. I introduced "structs = self.cu.structs" and it didn't help either. |
Thanks for spotting and reporting the error. I've pushed a fix that should help, but you could you please (both @crobertob and @smani) post the smallest input files you ran into this problem with? This way I can add them to the tests. I don't appear to have any files that trigger the |
Thank you very much, you can find the input file here: I will try out the fix now. Have a nice day! |
After trying it out, I get a new error:
Not sure what is the problem now. |
Don't have a personal license to generate the ELF image from armcc/armlink. Sorry I couldn't provide a image. I can confirm that I also see the behavior like @crobertob. |
Thanks for the reproducing file. I think I got the problem fixed in trunk. Let me know how it works for you. |
Thanks for the fix. It works for me. |
Thank you very much for the fix. |
Hello,
I'm trying to run the example examine_dwarf_info in an ELF file from Microvision but I receive the following error, could you please tell me if I'm doing something wrong or if there is a way to fix it? The example runs properly with the elf file provided as example. I'm using Python 2.7.3. Thank you.
The text was updated successfully, but these errors were encountered: