public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PR29270, DW_FORM_udata signed output
@ 2022-06-22  3:07 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-06-22  3:07 UTC (permalink / raw)
  To: binutils

	PR 29270
	* dwarf.c (read_and_display_attr_value): Output DW_FORM_udata
	as unsigned.

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));

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-22  3:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-22  3:07 PR29270, DW_FORM_udata signed output Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).