]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: Handle DW_MACRO_{define,undef}_{strx,sup} in dwarf-getmacros
authorOmar Sandoval <osandov@fb.com>
Wed, 27 Sep 2023 18:21:00 +0000 (11:21 -0700)
committerMark Wielaard <mark@klomp.org>
Thu, 2 Nov 2023 20:28:46 +0000 (21:28 +0100)
Signed-off-by: Omar Sandoval <osandov@fb.com>
tests/ChangeLog
tests/dwarf-getmacros.c

index f934c114bdc2f625958316f460751eb183cb3328..71fbb5599ef893ab663324e731fdac5e5c0226ad 100644 (file)
@@ -1,3 +1,9 @@
+2023-09-27  Omar Sandoval  <osandov@fb.com>
+
+       * dwarf-getmacros.c (mac): Add DW_MACRO_define_sup,
+       DW_MACRO_define_strx, DW_MACRO_undef_sup, and DW_MACRO_undef_strx
+       cases to opcode switch statement.
+
 2023-09-27  Omar Sandoval  <osandov@fb.com>
 
        * run-varlocs.sh: Add entry PC to split units.
index ac70248ddabb934c1331bcfe0e9303280fa094b4..e291bfd23a42c1047babf47081b8e9ef3b955d4b 100644 (file)
@@ -82,6 +82,8 @@ mac (Dwarf_Macro *macro, void *dbg)
 
     case DW_MACINFO_define:
     case DW_MACRO_define_strp:
+    case DW_MACRO_define_sup:
+    case DW_MACRO_define_strx:
       {
        const char *value;
        dwarf_macro_param2 (macro, NULL, &value);
@@ -91,6 +93,8 @@ mac (Dwarf_Macro *macro, void *dbg)
 
     case DW_MACINFO_undef:
     case DW_MACRO_undef_strp:
+    case DW_MACRO_undef_sup:
+    case DW_MACRO_undef_strx:
       break;
 
     default: