Skip to content
Snippets Groups Projects
Commit 7ae6dbbb authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Don't include short "GCC" lines that differs on a single prefix byte either....

Don't include short "GCC" lines that differs on a single prefix byte either. These are distracting, not very useful and are simply the strings(1) command's idea of the build ID, which is displayed elsewhere in the diff.
parent 79189fff
Branches master
No related merge requests found
......@@ -641,6 +641,7 @@ class ElfContainer(DecompilableContainer):
class Strings(Command):
re_debug_line = re.compile(r"^\s?\w{38,40}\.debug\n$")
re_gcc_line = re.compile(r"^.?GCC: \([^\)]+\)")
@tool_required("strings")
def cmdline(self):
......@@ -661,6 +662,19 @@ class Strings(Command):
if self.re_debug_line.match(val):
return b""
# Don't include short "GCC" lines that differs on a single prefix byte
# either. These are distracting, not very useful and are simply the
# strings(1) command's idea of the build ID, which is displayed
# elsewhere in the diff.
#
# For example:
#
# │ -GCC: (Debian 10.2.1-6) 10.2.1 20210110
# │ +QGCC: (Debian 10.2.1-6) 10.2.1 20210110
#
if self.re_gcc_line.match(val):
return line
return line
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment