[Bug default/27368] [dwz, dwarf5] Handle .debug_macro version 5

vries at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Mon Feb 8 10:55:20 GMT 2021


https://sourceware.org/bugzilla/show_bug.cgi?id=27368

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
Using:
...
$ git diff
diff --git a/dwz.c b/dwz.c
index 10860bf..5b5be1b 100644
--- a/dwz.c
+++ b/dwz.c
@@ -9844,7 +9844,8 @@ read_macro (DSO *dso)
        }

       version = read_16 (ptr);
-      if (version != 4)
+      bool supported_version_p = 4 <= version && version <= 5;
+      if (!supported_version_p)
        {
          error (0, 0, "%s: Unhandled .debug_macro version %d", dso->filename,
                 version);
...
I get:
...
                === dwz Summary ===

# of expected passes            63
# of unsupported tests          1
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Dwz mailing list