symbolic
symbolic copied to clipboard
Clarification or example for README bullet
There is a bullet in the README that drew me to this crate: "Generate Breakpad symbol files from Mach, ELF and PDBs" which would be perfect for something I am trying to accomplish. I am having trouble figuring out how to perform this generation though. Any chance someone could offer clarification and/or update the README with a more detailed explanation?
We never implemented a full dump_syms equivalent, but only the CFI part of it. To do that, you'll want to use AsciiCfiWriter.
To write FUNC and PUBLIC records, you would roughly have to do the following:
- Open an
Objectfrom the input file. - Get the
debug_sessionand generateFUNCrecords for all functions returned byfunctions. Skip inlinees, since Breakpad doesn't support that. - Iterate through
symbolsand emit missing ones asPUBLICrecord. - You can have a look at this function for an example of how to iterate functions and symbols to emit those in order.
It makes sense to add a dump_syms example program to showcase this. I'll leave this issue open for that.
You might also want to have a look at Mozilla's dump_syms which is a more complete implementation that's partially based on symbolic.
I'd vote for closing this as out-of-scope, considering dump_syms existence.