[PATCH] binutils/dwarf: Print embedded source, when available

Tom Tromey tom@tromey.com
Thu Apr 16 15:35:06 GMT 2026


>>>>> "Jan" == Jan Beulich <jbeulich@suse.com> writes:

>> We could consider using both? I have been working with this feature in
>> lldb and would be more than happy to submit a patch there that changes
>> it to use 0x6. Of course, there will likely need to be some support
>> for backwards compatibility (assuming that there are binaries in the
>> wild using 0x2001).

Jan> Sure, yet that won't eliminate the need to disambiguate LLVM's use of
Jan> 0x2001 from any one else's.

This probably isn't an issue here considering that there aren't any
other extensions in dwarf_line_number_content_type yet.  But anyway the
approach taken here is basically what's already done in many other
cases.  And while I think there have been some clashes, normally this
isn't a problem because the various open projects coordinate a bit.
Supporting both in-development and final published values is also fairly
common.

thanks,
Tom


More information about the Binutils mailing list