[11/14] tests: Handle DW_MACRO_{define, undef}_{strx, sup} in dwarf-getmacros

Message ID 6f2e2b50754f3fcd13657fdd33e3f2bed2c6cc0c.1695837512.git.osandov@fb.com
State Committed
Delegated to: Mark Wielaard
Headers
Series elfutils: DWARF package (.dwp) file support |

Commit Message

Omar Sandoval Sept. 27, 2023, 6:21 p.m. UTC
  From: Omar Sandoval <osandov@fb.com>

Signed-off-by: Omar Sandoval <osandov@fb.com>
---
 tests/ChangeLog         | 3 +++
 tests/dwarf-getmacros.c | 4 ++++
 2 files changed, 7 insertions(+)
  

Comments

Mark Wielaard Nov. 2, 2023, 8:30 p.m. UTC | #1
Hi Omar,

On Wed, Sep 27, 2023 at 11:21:00AM -0700, Omar Sandoval wrote:
> +	* 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.

Looks sane. Applied and pushed.

Thanks,

Mark
  

Patch

diff --git a/tests/ChangeLog b/tests/ChangeLog
index 687a9f32..4380c57f 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -14,6 +14,9 @@ 
 	* testfile-dwp-5.bz2: New test file.
 	* testfile-dwp-5.dwp.bz2: New test file.
 	* testfile-dwp.source: New file.
+	* 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-04-21  Frank Ch. Eigler <fche@redhat.com>
 
diff --git a/tests/dwarf-getmacros.c b/tests/dwarf-getmacros.c
index ac70248d..e291bfd2 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: