built bloaty from latest (c47f8677) on Ubuntu. Ran it on an elf compiled by xtensa-esp32-elf-g++ for the ESP32 using the command bloaty firmware.elf -d compileunits I get:
This is because DataSource source is equal to DataSource::kCompileUnits
I fixed it by changing ItaniumDemangle to not try to demangle if the source was a compile unit, but don't know enough about how bloaty is structured to know if there isn't some other better fix at a higher level. I can submit a patch and pull but while the change is trivial I don't know enough about the unit tests to write a proper test for this case.
built bloaty from latest (c47f8677) on Ubuntu. Ran it on an elf compiled by
xtensa-esp32-elf-g++
for the ESP32 using the commandbloaty firmware.elf -d compileunits
I get:This is because
DataSource source
is equal toDataSource::kCompileUnits
I fixed it by changing
ItaniumDemangle
to not try to demangle if the source was a compile unit, but don't know enough about how bloaty is structured to know if there isn't some other better fix at a higher level. I can submit a patch and pull but while the change is trivial I don't know enough about the unit tests to write a proper test for this case.