Skip to content

[Dwarf5] support latest libdwarf, and .debug_rnglists of dwarf5#362

Open
Jinjie-Huang wants to merge 1 commit intobombela:masterfrom
Jinjie-Huang:dwarf5_support
Open

[Dwarf5] support latest libdwarf, and .debug_rnglists of dwarf5#362
Jinjie-Huang wants to merge 1 commit intobombela:masterfrom
Jinjie-Huang:dwarf5_support

Conversation

@Jinjie-Huang
Copy link
Copy Markdown

@Jinjie-Huang Jinjie-Huang commented Mar 8, 2026

This patch tries to support the latest libdwarf APIs and enables reading DWARF5 line number information by supporting the .debug_rnglists section in DWARF5.

I have tested the changes which work correctly with the latest version of libdwarf. It also successfully retrieves and displays the correct stack traces in several internal test cases.

@Jinjie-Huang
Copy link
Copy Markdown
Author

@bombela Can you help to review? thanks.

@captainurist
Copy link
Copy Markdown

Oh I've been waiting for this. Will grab, @Jinjie-Huang thank you!

@captainurist
Copy link
Copy Markdown

Btw one thing to consider - the code is now obviously incompatible with the older libdwarf. When I wanted to implement this myself my understanding was that I'd have to support both APIs. So this might be one of the problems before merging this in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants