NationalSecurityAgency / ghidra

Ghidra is a software reverse engineering (SRE) framework
https://www.nsa.gov/ghidra
Apache License 2.0
50.62k stars 5.78k forks source link

Feature request: DWARF 1 Support #2985

Open byvar opened 3 years ago

byvar commented 3 years ago

Is your feature request related to a problem? Please describe. The DWARF analyzer currently only supports DWARF 2 and up -- DWARF 1 debugging data cannot be parsed.

Describe the solution you'd like Support for DWARF 1 debugging data

Describe alternatives you've considered An extension was recently created but it lacks some essential features (e.g. local variable support) and crashes easily. The majority of the debug data that can be viewed using DWARF Explorer is discarded.

Additional context

travelsonic commented 3 years ago

THIS. I am right now in the process of reverse engineering Playstation2 titles for fun - and would LOVE for Ghidra to support reading/using the DWARF 1.0/1.1 data that is left over in the executable.

It seem weird, to me, that they left out support for DWARF 1.0/1.1 formatted debugging data, since there is a non-zero amount of potential for someone to need it.

VPaulV commented 9 months ago

For dwarf1 there is https://github.com/rafalh/ghidra-dwarf1 plugin, that worked well for me

nneonneo commented 3 months ago

@VPaulV interesting, that’s the same extension that the original poster said “lacks some essential features (e.g. local variable support) and crashes easily”. It looks like it was updated substantially right around the time that this issue was posted, but not thereafter (it hasn’t been touched in three years). Would be good to know if the issues identified by the original poster are still present.