aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-05-07 22:57:30 +0000
committerJeff Johnston <jjohnstn@redhat.com>2003-05-07 22:57:30 +0000
commitddf9f2587631326634cf9adddc9bc5070cab0f7a (patch)
tree1b857f66ce47e5ae728732a30573c04d1db353aa /gdb/dwarf2read.c
parent87767c29b527515e0b1dbdefaaef86f972e0de9b (diff)
downloadgdb-ddf9f2587631326634cf9adddc9bc5070cab0f7a.zip
gdb-ddf9f2587631326634cf9adddc9bc5070cab0f7a.tar.gz
gdb-ddf9f2587631326634cf9adddc9bc5070cab0f7a.tar.bz2
2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
* dwarf2read.c (dwarf_decode_lines): Only use output of check_cu_functions() when calling record_line(). Do not update the current address.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 32a9f44..476078b 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: