Landing: 49a5c52438b6

Project / Subsystem

gcc / libbacktrace

Date

2026-07-06

Author

Ian Lance Taylor

Commit

49a5c52438b6a85b49884e596ae53e33150c296e

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libbacktrace
patch_id
commit_hash
49a5c52438b6a85b49884e596ae53e33150c296e
source_type
github
headline
libbacktrace supports DWARF discriminator field
tldr
libbacktrace now provides the DWARF 'discriminator' field for more precise inlined function call information.
author
Ian Lance Taylor
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • libbacktrace
  • debugging
  • dwarf
  • compiler
discussion_id_link
bugzilla_pr
date
2026-07-06T00:00:00.000Z

The libbacktrace library has been enhanced to support the DWARF ‘discriminator’ field, which helps distinguish between multiple calls to the same function at the same source location, particularly in inlined code. This change introduces a new struct backtrace_moredata and updates DWARF parsing to capture and report this discriminator value. This provides more accurate and detailed stack traces, especially in complex codebases with extensive inlining.