From 7878737f1c60dd444f47b701c208ade0b5a2becf Mon Sep 17 00:00:00 2001 From: Omar Sandoval Date: Wed, 27 Sep 2023 11:21:00 -0700 Subject: [PATCH] tests: Handle DW_MACRO_{define,undef}_{strx,sup} in dwarf-getmacros Signed-off-by: Omar Sandoval --- tests/ChangeLog | 6 ++++++ tests/dwarf-getmacros.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/tests/ChangeLog b/tests/ChangeLog index f934c114b..71fbb5599 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,9 @@ +2023-09-27 Omar Sandoval + + * 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 * run-varlocs.sh: Add entry PC to split units. diff --git a/tests/dwarf-getmacros.c b/tests/dwarf-getmacros.c index ac70248dd..e291bfd23 100644 --- a/tests/dwarf-getmacros.c +++ b/tests/dwarf-getmacros.c @@ -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: -- 2.47.2