This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] readelf: Read the decompressed data when processing .zdebug DWARF sections.


On Wed, 2014-04-09 at 22:43 +0200, Mark Wielaard wrote:
> readelf uses libdw to open the Dwarf and read some of the DWARF data.
> But it also uses its own parsers to display some of the low-level
> unprocessed data. If the DWARF debug section was zlib compressed it
> should actually use the decompressed section data from libdw instead
> of the raw section data.
> 
> Includes a testcase for those sections that couldn't be properly
> displayed when compressed before.
> [...]
> +2014-04-09  Mark Wielaard  <mjw@redhat.com>
> +
> +	* readelf.c (print_debug_aranges_section): Don't get the raw section
> +	data, use the possibly decompressed .[z]debug sectiondata.
> +	(print_debug_ranges_section): Likewise.
> +	(print_debug_frame_section): Likewise.
> +	(print_debug_line_section): Likewise.
> +	(print_debug_loc_section): Likewise.
> +	(print_debug_macinfo_section): Likewise.
> +	(print_debug_macro_section): Likewise.
> [...]
> +2014-04-09  Mark Wielaard  <mjw@redhat.com>
> +
> +       * run-readelf-zdebug.sh: New test.
> +       * testfile-debug.bz2: New testfile.
> +       * testfile-zdebug.bz2: New testfile.
> +       * Makefile.am (TESTS): Add run-readelf-zdebug.sh if ZLIB.
> +       (EXTRA_DIST): Add run-readelf-zdebug.sh, testfile-debug.bz2 and
> +       testfile-zdebug.bz2.

I pushed this to master now.

Cheers,

Mark



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]