This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] dwarf2read.c (dwarf_decode_lines_1): Add comment.
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 15 Aug 2014 16:19:30 -0700
- Subject: [commit] dwarf2read.c (dwarf_decode_lines_1): Add comment.
- Authentication-results: sourceware.org; auth=none
Hi.
While hacking on this function the use of p_record_line wasn't as
clear as I wished it was. I wrote this comment to help clear
things up for me.
2014-08-15 Doug Evans <dje@google.com>
* dwarf2read.c (dwarf_decode_lines_1): Add comment.
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 756d65b..6bc5793 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -17298,6 +17298,8 @@ dwarf_decode_lines_1 (struct line_header *lh, const char *comp_dir,
"[in module %s]"),
line_offset, objfile_name (objfile));
p_record_line = noop_record_line;
+ /* Note: p_record_line is left as noop_record_line
+ until we see DW_LNE_end_sequence. */
}
op_index = 0;