gimli-rs / gimli

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

Add PowerPC 64-bit DWARF register mappings #691

Closed tmcgilchrist closed 7 months ago

tmcgilchrist commented 7 months ago

Using the definitions from https://openpowerfoundation.org/specifications/64bitelfabi/ with a small test to check the register mappings. I followed the pattern from https://github.com/gimli-rs/gimli/pull/574 .

Are there other tests required for these changes? I am testing using my own Rust project that inspects ELF binaries and extracts debug information from them.

The Power32 bindings should be quite similar according to http://refspecs.linux-foundation.org/elf/elfspec_ppc.pdf and https://github.com/torvalds/linux/blob/master/arch/powerpc/perf/perf_regs.c