HBehrens / puncover

Analyses C/C++ build output for code size, static variables, and stack usage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash during call tree enhancement "Exception has occured: KeyError 'callers'"

Lykkeberg opened this issue · comments

I have downloaded the Puncover tool (thanks for a great tool btw). I ran it on my code, which is running on a ARM Cortex M0 with som ROM code being called. This seems to cause this issue.

When parsing the "nm" output, the Puncover stumbles on an absolute address definition:
Example (there are several):
07f1d989 A __eaabi_uidivmod
...

These absolute values are actually entries into a ROM code section, so they are actually getting called from the application.

How can this be handled correctly in Puncover? I have made a quick-fix in Collector.py::parse_size_lines() method. Simply just add an entry in 'types' for the 'A' type as a TYPE_FUNCTION.

The commit ID is 9eaabf8

Thanks for describing your workaround, it fixes things for me!

Apologies for the slow turnaround here, I've merged the patch in #73 and released this in version 0.3.3, let me know if there's any problems!