Trivial fix in dwarf_decode_macro_bytes
authorTom Tromey <tom@tromey.com>
Thu, 26 Mar 2020 15:28:08 +0000 (09:28 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 26 Mar 2020 15:28:18 +0000 (09:28 -0600)
One spot in dwarf_decode_macro_bytes could use the existing "objfile"
local variable.

gdb/ChangeLog
2020-03-26  Tom Tromey  <tom@tromey.com>

* dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
variable.

gdb/ChangeLog
gdb/dwarf2/macro.c

index c945936517357fc4bc8d864fc29ff6955c2fb5fb..1472f6679c02dccab70c399d2154af82d230ad59 100644 (file)
@@ -1,3 +1,8 @@
+2020-03-26  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
+       variable.
+
 2020-03-26  Tom Tromey  <tom@tromey.com>
 
        * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
index 49586399673fa0a24a845c7a8e0577a81fb52a5c..6c2d2514652fb513f464dc481e1e254835aa66f5 100644 (file)
@@ -512,9 +512,9 @@ dwarf_decode_macro_bytes (struct dwarf2_per_objfile *dwarf2_per_objfile,
                    body = dwz->read_string (objfile, str_offset);
                  }
                else
-                 body = (dwarf2_per_objfile->str.read_string
-                         (dwarf2_per_objfile->objfile,
-                          str_offset, "DW_FORM_strp"));
+                 body = dwarf2_per_objfile->str.read_string (objfile,
+                                                             str_offset,
+                                                             "DW_FORM_strp");
              }
 
            is_define = (macinfo_type == DW_MACRO_define