gimli-rs / gimli

A library for reading and writing the DWARF debugging format

Home Page:https://docs.rs/gimli/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Addr2line broken with clang 15?

vlovich opened this issue · comments

It looks like clang 15 switches the default version to DWARF-5 but this library doesn't support it so addr2line breaks? At least our custom addr2line clone does (addr2line v 0.14, object v0.23). I'm not 100% certain yet it's DWARF-5 that's the problem - going to see if forcing -gdwarf-4 to the build fixes things.

Since latest version is breaking we have to do some work to migrate but the stock examples look like they may also not be working properly? Or is there something special that needs to be done for DWARF-5 to work?

Confirmed that forcing the build to use DWARF-4 fixes the issue. clang 15 bumps the debugging format to DWARF-5 by default.