I was testing the stack usage feature of puncover but found out there is a bug in the code.
I enabled stack usage in the GCC compiler (-fstack-usage) but I was not getting any info on the puncover website. After debugging I noticed that the function parse_stack_usage_line does not parse correctly the so-called base_file_name
I was testing the stack usage feature of puncover but found out there is a bug in the code.
I enabled stack usage in the GCC compiler (-fstack-usage) but I was not getting any info on the puncover website. After debugging I noticed that the function
parse_stack_usage_line
does not parse correctly the so-calledbase_file_name
This is important because when you are adding the stack usage it compares the base_file_name that was added previously when looking for symbols... i.e., with
arm-none-eabi-nm -Sl YOUR_ELF_FILE.elf
. Specifically here https://github.com/HBehrens/puncover/blob/ec63f21c8be12fef2724beb28810d0b7238640f9/puncover/collector.py#L102Therefore
parse_stack_usage_line
should also extract the base file name.My suggestion: