Blame SOURCES/gdb-upstream.patch

e1d87d
commit 16eb6b2db49e6cf2fdca56efd37689fcc170cd37
e1d87d
Author: Leszek Swirski <leszeks@google.com>
e1d87d
Date:   Mon Aug 7 16:40:38 2017 +0200
e1d87d
e1d87d
    Fix dwarf2_string_attr for -gsplit-dwarf
e1d87d
    
e1d87d
    The dwarf2_string_attr did not allow DW_FORM_GNU_str_index as a form for
e1d87d
    string types. This manifested as null strings in the namespace_name
e1d87d
    lookup (replaced with "(anonymous namespace)") when debugging
e1d87d
    Fission-compiled code.
e1d87d
    
e1d87d
    gdb/ChangeLog:
e1d87d
    
e1d87d
            * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
e1d87d
e1d87d
### a/gdb/ChangeLog
e1d87d
### b/gdb/ChangeLog
e1d87d
## -1,3 +1,7 @@
e1d87d
+2017-08-07  Leszek Swirski  <leszeks@google.com>
e1d87d
+
e1d87d
+	* dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
e1d87d
+
e1d87d
 2017-08-07  Simon Marchi  <simon.marchi@ericsson.com>
e1d87d
 
e1d87d
 	* remote-sim.c (gdbsim_load): Remove char **argv local variable.
e1d87d
--- a/gdb/dwarf2read.c
e1d87d
+++ b/gdb/dwarf2read.c
e1d87d
@@ -17623,7 +17623,8 @@ dwarf2_string_attr (struct die_info *die, unsigned int name, struct dwarf2_cu *c
e1d87d
   if (attr != NULL)
e1d87d
     {
e1d87d
       if (attr->form == DW_FORM_strp || attr->form == DW_FORM_line_strp
e1d87d
-	  || attr->form == DW_FORM_string || attr->form == DW_FORM_GNU_strp_alt)
e1d87d
+	  || attr->form == DW_FORM_string || DW_FORM_GNU_str_index
e1d87d
+	  || attr->form == DW_FORM_GNU_strp_alt)
e1d87d
 	str = DW_STRING (attr);
e1d87d
       else
e1d87d
         complaint (&symfile_complaints,
e1d87d
e1d87d
e1d87d
e1d87d
commit b33404388e5bbd8a1fddfde73cd4593ae2b557e8
e1d87d
Author: H.J. Lu <hjl.tools@gmail.com>
e1d87d
Date:   Wed Aug 9 05:01:55 2017 -0700
e1d87d
e1d87d
    gdb: Fix build failure with GCC 7
e1d87d
    
e1d87d
    Fix:
e1d87d
    
e1d87d
    /export/gnu/import/git/sources/binutils-gdb/gdb/dwarf2read.c: In function ‘const char* dwarf2_string_attr(die_info*, unsigned int, dwarf2_cu*)’:
e1d87d
    /export/gnu/import/git/sources/binutils-gdb/gdb/dwarf2read.c:17626:39: error: enum constant in boolean context [-Werror=int-in-bool-context]
e1d87d
        || attr->form == DW_FORM_string || DW_FORM_GNU_str_index
e1d87d
    
e1d87d
            * dwarf2read.c (dwarf2_string_attr): Fix a typo.
e1d87d
e1d87d
### a/gdb/ChangeLog
e1d87d
### b/gdb/ChangeLog
e1d87d
## -1,3 +1,7 @@
e1d87d
+2017-08-09  H.J. Lu  <hongjiu.lu@intel.com>
e1d87d
+
e1d87d
+	* dwarf2read.c (dwarf2_string_attr): Fix a typo.
e1d87d
+
e1d87d
 2017-08-09  Alex Lindsay  <alexlindsay239@gmail.com>
e1d87d
 	    Yao Qi  <yao.qi@linaro.org>
e1d87d
 
e1d87d
--- a/gdb/dwarf2read.c
e1d87d
+++ b/gdb/dwarf2read.c
e1d87d
@@ -17623,7 +17623,8 @@ dwarf2_string_attr (struct die_info *die, unsigned int name, struct dwarf2_cu *c
e1d87d
   if (attr != NULL)
e1d87d
     {
e1d87d
       if (attr->form == DW_FORM_strp || attr->form == DW_FORM_line_strp
e1d87d
-	  || attr->form == DW_FORM_string || DW_FORM_GNU_str_index
e1d87d
+	  || attr->form == DW_FORM_string
e1d87d
+	  || attr->form == DW_FORM_GNU_str_index
e1d87d
 	  || attr->form == DW_FORM_GNU_strp_alt)
e1d87d
 	str = DW_STRING (attr);
e1d87d
       else