PR29270, DW_FORM_udata signed output
authorAlan Modra <amodra@gmail.com>
Tue, 21 Jun 2022 01:18:21 +0000 (10:48 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 22 Jun 2022 03:06:51 +0000 (12:36 +0930)
PR 29270
* dwarf.c (read_and_display_attr_value): Output DW_FORM_udata
as unsigned.

binutils/dwarf.c

index 30b64ac68a822a10e136ad777186d0b73ca7fe94..f9c46cf54ddb34236608fdece198e3995c6abbf4 100644 (file)
@@ -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));