diff options
author | Alan Modra <amodra@gmail.com> | 2022-06-21 10:48:21 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-06-22 12:36:51 +0930 |
commit | 581db2a29bddc6d7f2fda34aa4301e070f75c609 (patch) | |
tree | dbf0fb1d9b74cff8882a5441b3d782a22d909266 /binutils | |
parent | b6a7c07c40c16376debd74dac677ace4159128ea (diff) | |
download | gdb-581db2a29bddc6d7f2fda34aa4301e070f75c609.zip gdb-581db2a29bddc6d7f2fda34aa4301e070f75c609.tar.gz gdb-581db2a29bddc6d7f2fda34aa4301e070f75c609.tar.bz2 |
PR29270, DW_FORM_udata signed output
PR 29270
* dwarf.c (read_and_display_attr_value): Output DW_FORM_udata
as unsigned.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/dwarf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 30b64ac..f9c46cf 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)); |