[commit] dwarf2read.c (dwarf_decode_lines_1): Add comment.

Message ID yjt2ha1dbat9.fsf@ruffy.mtv.corp.google.com
State Committed

Commit Message

Doug Evans Aug. 15, 2014, 11:19 p.m. UTC

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;