dwarf2read: call dwarf_finish_line when ending a sequence
authorSimon Marchi <simon.marchi@ericsson.com>
Wed, 10 Jun 2015 20:34:16 +0000 (16:34 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 10 Jun 2015 20:34:16 +0000 (16:34 -0400)
Commit d9b3de22f33e400f7f409cce3acf6c7dab07dd79 introduced a behaviour
change where dwarf_finish_line was not called anymore when ending a
sequence of machine instructions. This patch restores the original
behaviour.

gdb/ChangeLog:

* dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
 end_sequence is true.

gdb/ChangeLog
gdb/dwarf2read.c

index 5b19052d3d879cf9d4cd80d045a0bbfda5aee818..872d88a9d027d557e6fa71e5b9a15c413db4a522 100644 (file)
@@ -1,3 +1,8 @@
+2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
+       end_sequence is true.
+
 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Code cleanup.
index 1e290c35aafb5d79dafb4393fded1136aa8d508e..d79b2e3a98e9693c52cd1d200d33451fd41b1666 100644 (file)
@@ -17658,7 +17658,7 @@ dwarf_record_line (lnp_reader_state *reader, lnp_state_machine *state,
       lh->file_names[file - 1].included_p = 1;
       if (reader->record_lines_p && is_stmt)
        {
-         if (state->last_subfile != current_subfile)
+         if (state->last_subfile != current_subfile || end_sequence)
            {
              dwarf_finish_line (reader->gdbarch, state->last_subfile,
                                 state->address, state->record_line);