gimli-rs / gimli

A library for reading and writing the DWARF debugging format
https://docs.rs/gimli/
Apache License 2.0
853 stars 108 forks source link

UnknownCallFrameInstruction(DwCfa(45)) #667

Closed krzysiek6d closed 1 year ago

krzysiek6d commented 1 year ago

Hi

On aarch64 arm64v8 I encountered such errors: UnknownCallFrameInstruction(DwCfa(45)) Seems that 45 points to DW_CFA_GNU_window_save which is not implemented. Is there any chance for implmenting that?

krzysiek6d commented 1 year ago

It seems that it can be also DW_CFA_AARCH64_negate_ra_state - it's value is also 45

philipc commented 1 year ago

I can implement if I have time, but it won't be soon. Needing to support different vendors is going to complicate things; it's not something we've handled anywhere yet.

philipc commented 1 year ago

Can you test whether #673 meets your needs? I haven't done any testing on it myself yet.

krzysiek6d commented 1 year ago

Thanks, I'll check that next week ;)

philipc commented 1 year ago

I tested the dwarfdump example on an AArch64 binary produced by clang.