From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: binutils@sourceware.org
Cc: Victor Leschuk <vleschuk@accesssoftek.com>
Subject: [PATCH 6/6] DWARF-5: DW_FORM_data16
Date: Wed, 15 Feb 2017 22:58:00 -0000 [thread overview]
Message-ID: <148719951799.19826.3624963005046302833.stgit@host1.jankratochvil.net> (raw)
In-Reply-To: <148719947800.19826.950569475344047705.stgit@host1.jankratochvil.net>
Hi,
DWARF-5 has new form DW_FORM_data16.
Jan
binutils/ChangeLog
2017-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
* dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
---
binutils/dwarf.c | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 94b366b..b29ed10 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -1730,6 +1730,32 @@ read_and_display_attr_value (unsigned long attribute,
data += 8;
break;
+ case DW_FORM_data16:
+ if (!do_loc)
+ {
+ dwarf_vma left_high_bits, left_low_bits;
+ dwarf_vma right_high_bits, right_low_bits;
+
+ SAFE_BYTE_GET64 (data, &left_high_bits, &left_low_bits, end);
+ SAFE_BYTE_GET64 (data + 8, &right_high_bits, &right_low_bits, end);
+ if (byte_get == byte_get_little_endian)
+ {
+ /* Swap them. */
+ left_high_bits ^= right_high_bits;
+ right_high_bits ^= left_high_bits;
+ left_high_bits ^= right_high_bits;
+ left_low_bits ^= right_low_bits;
+ right_low_bits ^= left_low_bits;
+ left_low_bits ^= right_low_bits;
+ }
+ printf (" 0x%08" DWARF_VMA_FMT "x%08" DWARF_VMA_FMT "x"
+ "%08" DWARF_VMA_FMT "x%08" DWARF_VMA_FMT "x",
+ left_high_bits, left_low_bits, right_high_bits,
+ right_low_bits);
+ }
+ data += 16;
+ break;
+
case DW_FORM_string:
if (!do_loc)
printf ("%c%.*s", delimiter, (int) (end - data), data);
next prev parent reply other threads:[~2017-02-15 22:58 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-15 22:58 [PATCH 1/6] DWARF attrs: add delimiter Jan Kratochvil
2017-02-15 22:58 ` [PATCH 2/6] Display user op byte Jan Kratochvil
2017-02-22 11:30 ` Nick Clifton
2017-02-22 19:24 ` [commit] " Jan Kratochvil
2017-02-15 22:58 ` [PATCH 4/6] DWARF-5: call sites Jan Kratochvil
2017-02-22 11:49 ` Nick Clifton
2017-02-23 22:12 ` [commit] " Jan Kratochvil
2017-02-15 22:58 ` [PATCH 3/6] DWARF-5 basic functionality Jan Kratochvil
2017-02-22 11:36 ` Nick Clifton
2017-02-22 18:42 ` Jan Kratochvil
2017-02-22 11:47 ` Nick Clifton
2017-02-22 19:13 ` [patch] dwarf.c: Use more dwarf_vma [Re: [PATCH 3/6] DWARF-5 basic functionality] Jan Kratochvil
2017-02-23 16:34 ` Nick Clifton
2017-02-23 16:35 ` Nick Clifton
2017-02-23 20:38 ` [commit] " Jan Kratochvil
2017-02-23 22:12 ` [commit] [PATCH 3/6] DWARF-5 basic functionality Jan Kratochvil
2017-02-27 21:58 ` Maciej W. Rozycki
2017-02-27 22:24 ` [obv] DWARF-5: Fix compilation with GCC 4.4.7 [Re: [commit] [PATCH 3/6] DWARF-5 basic functionality] Jan Kratochvil
2017-02-15 22:58 ` [PATCH 5/6] DWARF-5: Macros Jan Kratochvil
2017-02-22 11:50 ` Nick Clifton
2017-02-23 22:13 ` [commit] " Jan Kratochvil
2017-02-15 22:58 ` Jan Kratochvil [this message]
2017-02-22 11:51 ` [PATCH 6/6] DWARF-5: DW_FORM_data16 Nick Clifton
2017-02-23 22:13 ` [commit] " Jan Kratochvil
2017-02-16 10:59 ` [PATCH 1/6] DWARF attrs: add delimiter Nick Clifton
2017-02-16 20:13 ` Jan Kratochvil
2017-02-17 8:37 ` Nick Clifton
2017-02-18 19:47 ` [patch] DWARF-5: testcase [Re: [PATCH 1/6] DWARF attrs: add delimiter] Jan Kratochvil
2017-02-21 9:44 ` Nick Clifton
2017-02-23 22:17 ` [commit] [patch] DWARF-5: testcase Jan Kratochvil
2017-02-22 11:48 ` [PATCH 1/6] DWARF attrs: add delimiter Nick Clifton
2017-02-23 22:08 ` [commit] " Jan Kratochvil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=148719951799.19826.3624963005046302833.stgit@host1.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=binutils@sourceware.org \
--cc=vleschuk@accesssoftek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).