From ddf9f2587631326634cf9adddc9bc5070cab0f7a Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 7 May 2003 22:57:30 +0000 Subject: [PATCH] 2003-05-07 Jeff Johnston * dwarf2read.c (dwarf_decode_lines): Only use output of check_cu_functions() when calling record_line(). Do not update the current address. --- gdb/ChangeLog | 6 ++++++ gdb/dwarf2read.c | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7a4253fc27..3ecbb3b69a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2003-05-07 Jeff Johnston + + * dwarf2read.c (dwarf_decode_lines): Only use output of + check_cu_functions() when calling record_line(). Do not update + the current address. + 2003-05-07 Andrew Cagney * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 32a9f44b56..476078b028 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -4878,8 +4878,8 @@ dwarf_decode_lines (struct line_header *lh, char *comp_dir, bfd *abfd, * lh->minimum_instruction_length; line += lh->line_base + (adj_opcode % lh->line_range); /* append row to matrix using current values */ - address = check_cu_functions (address); - record_line (current_subfile, line, address); + record_line (current_subfile, line, + check_cu_functions (address)); basic_block = 1; } else switch (op_code) @@ -4925,8 +4925,8 @@ dwarf_decode_lines (struct line_header *lh, char *comp_dir, bfd *abfd, } break; case DW_LNS_copy: - address = check_cu_functions (address); - record_line (current_subfile, line, address); + record_line (current_subfile, line, + check_cu_functions (address)); basic_block = 0; break; case DW_LNS_advance_pc: -- 2.34.1