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

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=581db2a29bddc6d7f2fda34aa4301e070f75c609

commit 581db2a29bddc6d7f2fda34aa4301e070f75c609
Author: Alan Modra <amodra@gmail.com>
Date:   Tue Jun 21 10:48:21 2022 +0930

    PR29270, DW_FORM_udata signed output
    
            PR 29270
            * dwarf.c (read_and_display_attr_value): Output DW_FORM_udata
            as unsigned.

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


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

only message in thread, other threads:[~2022-06-22  3:08 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:08 [binutils-gdb] 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).