[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/26847] readelf -wi should print DWARF forms
From: |
nickc at redhat dot com |
Subject: |
[Bug binutils/26847] readelf -wi should print DWARF forms |
Date: |
Fri, 06 Nov 2020 10:47:20 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26847
Nick Clifton <nickc at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nickc at redhat dot com
--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
Created attachment 12943
--> https://sourceware.org/bugzilla/attachment.cgi?id=12943&action=edit
Proposed patch
Hi Tom,
Something like this patch ?
With it applied the output looks like this:
[...]
<0><b>: Abbrev Number: 2 (DW_TAG_partial_unit)
<c> DW_AT_stmt_list : (sec_offset) 0x0
<10> DW_AT_comp_dir : (strp) (offset: 0x4a2146):
/usr/src/debug/gcc-10.2.1-6.fc32.x86_64/obj-x86_64-redhat-linux/x86_64-r
edhat-linux/libgcc
<1><14>: Abbrev Number: 111 (DW_TAG_base_type)
<15> DW_AT_byte_size : (data1) 4
<16> DW_AT_encoding : (data1) 5 (signed)
[...]
There is one caveat with this patch: the form name is only displayed when
--wide is enabled. This meant that I did not have to fix up all the binutils
tests that run regexps over readelf's output, and it seemed to me to be a
reasonable compromise.
Cheers
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.