aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2015-06-10 16:34:16 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2015-06-10 16:34:16 -0400
commite815d2d2714a395d11abb350eff385931257ed9a (patch)
treec896545958eb0435e19505fce4b65e5e8b59f73f /gdb/dwarf2read.c
parent8847cac2f7ce6ff2c13fa611660c2dfc59c78272 (diff)
downloadfsf-binutils-gdb-e815d2d2714a395d11abb350eff385931257ed9a.zip
fsf-binutils-gdb-e815d2d2714a395d11abb350eff385931257ed9a.tar.gz
fsf-binutils-gdb-e815d2d2714a395d11abb350eff385931257ed9a.tar.bz2
dwarf2read: call dwarf_finish_line when ending a sequence
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.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 1e290c3..d79b2e3 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -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);