#1
|
|||
|
|||
How to dump data structures from DWARF debug info?
I have an ELF file with DWARF debug information, how can I dump the data structures in some kind of C-like form? I know of quite a few tools that can do it for Microsoft PDB debug information but I can't find one that can do it for DWARF information.
|
#2
|
||||
|
||||
There's a handful of DWARF parsers up on GitHub in various languages:
Code:
https://github.com/search?q=dwarf One I've had success with in the past: Code:
https://github.com/seilweiss/dwarf2cpp
__________________
Personal Projects Site: https://atom0s.com |
The Following User Gave Reputation+1 to atom0s For This Useful Post: | ||
TQN (06-29-2022) |
The Following User Says Thank You to atom0s For This Useful Post: | ||
tonyweb (06-30-2022) |
#3
|
|||
|
|||
In the end I was able to get IDA to load this elf file (its a debug build of a PlayStation 3 game) and read the DWARF debug info at the same time. And I was able to find a debug build of an xbox 360 game by the same developers that contains a PDB file and that happens to use the particular library code I was interested in.
So with the combination of the PS3 game debug build and the 360 game debug build (and some other code and things from this same developer that are out there) I am making progress on reverse engineering this library (its code for reading an archive format used by games from this developer and I want to make a tool for working with said archive format |
The Following User Says Thank You to jonwil For This Useful Post: | ||
sh3dow (07-17-2022) |
#4
|
||||
|
||||
You may be able to find additional useful info / PDB / debug symbols for the game as well from resources like this:
Code:
http://debugging.games/
__________________
Personal Projects Site: https://atom0s.com |
#5
|
|||
|
|||
Yes that's where I got the debug builds I am working with from.
|
#6
|
|||
|
|||
a friend of mine recommended this repo for the DWARF exploration goal
https://github.com/marakew/dwarf2cpp |
Thread Tools | |
Display Modes | |
|
|