Open lievenhey opened 1 year ago
Just to recheck: objdump
is currently called twice per disassembly request - is that correct an if yes, would only one call be replaced by dwarfdump?
Would it be useful to link to libwarf (doesn't seem like this is currently done)?
[I see the error message that there's no support for --visualize-jumps
twice]
If you use Rizin library, you could get both disassembly (often capstone-based, depending on the architecture) and DWARF parsing. Along with other formats, like PDB, Mach-O support, and many other things.
Thank you for pointing that out (note: if HotSpot depends on that it may need to move from current GPL v2 or v3 to GPL v3 (or v3+) to use the LGPLv3 library - but I'm not sure).
currently we are just parsing the output of
objdump
which in case of inlined functions is not useable. See #490If I comple test.c
with
-O3 -g
I end up with the following in objdump:dwarfdump gives me:
so it may be worth investing some time into proper dwarf parsing.