Remove dwarf_decode_lines argumewant_line_info
authorYao Qi <yao@codesourcery.com>
Tue, 26 Aug 2014 13:02:49 +0000 (21:02 +0800)
committerYao Qi <yao@codesourcery.com>
Thu, 28 Aug 2014 02:44:15 +0000 (10:44 +0800)
commita1b34d156a85f8c93af66a3677e75a132bfcc54a
treefc204791f1ea2f8ea83f54a4f40187b62851ecc5
parent53116d5d21c469147aaa2717fd79dd12ddeed959
Remove dwarf_decode_lines argumewant_line_info

Hi,
dwarf_decode_lines is called in two functions,
dwarf2_build_include_psymtabs and handle_DW_AT_stmt_list, in which, 1
is passed to argument 'want_line_info' and 'want_line_info' is a
conditional variable in dwarf_decode_lines.  We can simplify it by
removing 'want_line_info' and propagating the constant 1 into
dwarf_decode_lines.  This is what this patch does.  This patch also
remove one line comment about WANT_LINE_INFO in
handle_DW_AT_stmt_list, as handle_DW_AT_stmt_list doesn't have such
argument.

gdb:

2014-08-28  Yao Qi  <yao@codesourcery.com>

* dwarf2read.c (dwarf_decode_lines): Update declaration.
(handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
(dwarf_decode_lines): Remove argument
want_line_info.  Remove condition check on want_line_info.
Callers update.
gdb/ChangeLog
gdb/dwarf2read.c