[diffoscope] 01/01: Keep both .debug_str and .zdebug_str as ElfSection

Jérémy Bobbio lunar at moszumanska.debian.org
Sun Jan 31 14:36:45 CET 2016

This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository diffoscope.

commit 654e0d0076a7c37c15dbf5e6c1ae92d3a4d3355a
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sun Jan 31 14:35:09 2016 +0100

    Keep both .debug_str and .zdebug_str as ElfSection
    The previous code would forget about the compressed version.
    Thanks to Niels Thykier for noticing the problem!
 diffoscope/comparators/elf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/comparators/elf.py b/diffoscope/comparators/elf.py
index d33ef81..7420579 100644
--- a/diffoscope/comparators/elf.py
+++ b/diffoscope/comparators/elf.py
@@ -233,7 +233,7 @@ def _should_skip_section(name, type):
     if name.startswith('.debug') or name.startswith('.zdebug'):
         # section .debug_str looks much nicer with `readelf --string-dump`
         # the rest is handled by READELF_DEBUG_DUMP_COMMANDS
-        return name != '.debug_str'
+        return not name.endswith('_str')
     return False

Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git

More information about the diffoscope mailing list