From 581db2a29bddc6d7f2fda34aa4301e070f75c609 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 21 Jun 2022 10:48:21 +0930 Subject: [PATCH] PR29270, DW_FORM_udata signed output PR 29270 * dwarf.c (read_and_display_attr_value): Output DW_FORM_udata as unsigned. --- binutils/dwarf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 30b64ac68a8..f9c46cf54dd 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -2615,11 +2615,15 @@ read_and_display_attr_value (unsigned long attribute, case DW_FORM_data1: case DW_FORM_data2: case DW_FORM_sdata: - case DW_FORM_udata: if (!do_loc) printf ("%c%s", delimiter, dwarf_vmatoa ("d", uvalue)); break; + case DW_FORM_udata: + if (!do_loc) + printf ("%c%s", delimiter, dwarf_vmatoa ("u", uvalue)); + break; + case DW_FORM_implicit_const: if (!do_loc) printf ("%c%s", delimiter, dwarf_vmatoa ("d", implicit_const)); -- 2.30.2