aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2009-06-23 19:09:54 +0000
committerCary Coutant <ccoutant@google.com>2009-06-23 19:09:54 +0000
commitca5f395d6255337974262b4a6f40da531fcf6204 (patch)
tree06af14155ac6d0583cf338c9cfa88c386a65c6e8 /gdb/dwarf2read.c
parent5b2ab4610e175ef90edff7754e1121816b3eb5ad (diff)
downloadgdb-ca5f395d6255337974262b4a6f40da531fcf6204.zip
gdb-ca5f395d6255337974262b4a6f40da531fcf6204.tar.gz
gdb-ca5f395d6255337974262b4a6f40da531fcf6204.tar.bz2
* dwarf2read.c (dwarf_decode_lines): Ignore rows where is_stmt is 0.
Set basic_block to 0 after a special opcode.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 9c24f8e..f5901c7 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -7353,7 +7353,7 @@ dwarf_decode_lines (struct line_header *lh, char *comp_dir, bfd *abfd,
else
{
lh->file_names[file - 1].included_p = 1;
- if (!decode_for_pst_p)
+ if (!decode_for_pst_p && is_stmt)
{
if (last_subfile != current_subfile)
{
@@ -7368,7 +7368,7 @@ dwarf_decode_lines (struct line_header *lh, char *comp_dir, bfd *abfd,
record_line (current_subfile, line, addr);
}
}
- basic_block = 1;
+ basic_block = 0;
}
else switch (op_code)
{
@@ -7433,7 +7433,7 @@ dwarf_decode_lines (struct line_header *lh, char *comp_dir, bfd *abfd,
else
{
lh->file_names[file - 1].included_p = 1;
- if (!decode_for_pst_p)
+ if (!decode_for_pst_p && is_stmt)
{
if (last_subfile != current_subfile)
{