This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]