aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/macro.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-03-26 09:28:08 -0600
committerTom Tromey <tom@tromey.com>2020-03-26 09:28:18 -0600
commit2ef46c2fbbd18c3f411ef294c2c6694a1308a5a5 (patch)
treefe59d6390b2044525798b35af1a798c8415d3f00 /gdb/dwarf2/macro.c
parent4f9c1eda9ffc161015b6d9cc6dc958b67de680e6 (diff)
downloadgdb-2ef46c2fbbd18c3f411ef294c2c6694a1308a5a5.zip
gdb-2ef46c2fbbd18c3f411ef294c2c6694a1308a5a5.tar.gz
gdb-2ef46c2fbbd18c3f411ef294c2c6694a1308a5a5.tar.bz2
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.
Diffstat (limited to 'gdb/dwarf2/macro.c')
-rw-r--r--gdb/dwarf2/macro.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/dwarf2/macro.c b/gdb/dwarf2/macro.c
index 4958639..6c2d251 100644
--- a/gdb/dwarf2/macro.c
+++ b/gdb/dwarf2/macro.c
@@ -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