The rewrite of parse_function_spec left the line numbers uninitialized
when not used, but elsewhere was depending on that. Fix the uninit, and
also don't depend on it.
* tapsets.cxx (dwarf_query::parse_function_spec): Init line stuff.
(query_cu): Branch on the spec_type, not the line contents.
void
dwarf_query::parse_function_spec(const string & spec)
{
+ line_type = ABSOLUTE;
+ line[0] = line[1] = 0;
+
size_t src_pos, line_pos, dash_pos, scope_pos, next_scope_pos;
// look for named scopes
if (q->has_label)
{
- if (q->line[0] == 0) // No line number specified
+ if (q->spec_type != function_file_and_line) // No line number specified
{
for (func_info_map_t::iterator i = q->filtered_functions.begin();
i != q->filtered_functions.end(); ++i)