[binutils-gdb] Handle DW_FORM_implicit_const when displaying an attribute

Nick Clifton nickc@sourceware.org
Wed Jun 30 15:18:35 GMT 2021


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

commit c63fc3680abb57eddb7c0cefbf11c01736286890
Author: Nick Clifton <nickc@redhat.com>
Date:   Wed Jun 30 16:17:46 2021 +0100

    Handle DW_FORM_implicit_const when displaying an attribute
    
            * dwarf.c (read_and_display_attr_value): Handle
            DW_FORM_implicit_const.

Diff:
---
 binutils/ChangeLog | 5 +++++
 binutils/dwarf.c   | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index b5dedef26ee..b22a08110cc 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2021-06-30  Tom Tromey  <tom@tromey.com>
+
+	* dwarf.c (read_and_display_attr_value): Handle
+	DW_FORM_implicit_const.
+
 2021-06-30  Richard Henderson  <richard.henderson@linaro.org>
 
 	* dwarf.c (display_debug_frames): Both DW_CFA_def_cfa_sf
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index a61f099e3f2..de9d2b8c8f5 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -2517,6 +2517,10 @@ read_and_display_attr_value (unsigned long           attribute,
 					  offset_size, dwarf_version,
 					  debug_info_p, do_loc,
 					  section, this_set, delimiter, level);
+
+    case DW_FORM_implicit_const:
+      uvalue = implicit_const;
+      break;
     }
 
   switch (form)


More information about the Binutils-cvs mailing list