aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorJohn Darrington <john@darrington.wattle.id.au>2018-09-19 19:56:29 +0200
committerJohn Darrington <john@darrington.wattle.id.au>2018-09-20 19:02:50 +0200
commit17f6ade235fc96b4e572b5251b344d426c5f1cd5 (patch)
tree5c53d1e43e1da58602f393dd86bbf806b79fa04b /binutils/dwarf.c
parenta466edac5f9913e3373e59335607e9666a0ac8c7 (diff)
downloadgdb-17f6ade235fc96b4e572b5251b344d426c5f1cd5.zip
gdb-17f6ade235fc96b4e572b5251b344d426c5f1cd5.tar.gz
gdb-17f6ade235fc96b4e572b5251b344d426c5f1cd5.tar.bz2
binutils --dwarf=decodedline: Add display of is_stmt flag
binutils/ * dwarf.c (display_debug_lines_decoded): Add display of is_stmt. * testsuite/binutils-all/dw5.W: Deal with the consequences. * testsuite/binutils-all/objdump.WL: Deal with the consequences.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index ad961b8..a85a9ab 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -4357,7 +4357,7 @@ display_debug_lines_decoded (struct dwarf_section * section,
printf ("%s:\n", file_table[0].name);
}
- printf (_("File name Line number Starting address View\n"));
+ printf (_("File name Line number Starting address View Stmt\n"));
saved_linfo = linfo;
}
@@ -4695,9 +4695,14 @@ display_debug_lines_decoded (struct dwarf_section * section,
}
if (state_machine_regs.view)
- printf (" %6u\n", state_machine_regs.view);
+ printf (" %6u", state_machine_regs.view);
else
- putchar ('\n');
+ printf (" ");
+
+ if (state_machine_regs.is_stmt)
+ printf (" x");
+
+ putchar ('\n');
state_machine_regs.view++;
if (xop == -DW_LNE_end_sequence)