Trivial fix in dwarf_decode_macro_bytes

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.
This commit is contained in:
Tom Tromey 2020-03-26 09:28:08 -06:00
parent 4f9c1eda9f
commit 2ef46c2fbb
2 changed files with 8 additions and 3 deletions

View 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

View 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