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.
This commit is contained in:
parent
a466edac5f
commit
17f6ade235
3 changed files with 16 additions and 11 deletions
|
@ -4357,7 +4357,7 @@ display_debug_lines_decoded (struct dwarf_section * section,
|
||||||
printf ("%s:\n", file_table[0].name);
|
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;
|
saved_linfo = linfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4695,8 +4695,13 @@ display_debug_lines_decoded (struct dwarf_section * section,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state_machine_regs.view)
|
if (state_machine_regs.view)
|
||||||
printf (" %6u\n", state_machine_regs.view);
|
printf (" %6u", state_machine_regs.view);
|
||||||
else
|
else
|
||||||
|
printf (" ");
|
||||||
|
|
||||||
|
if (state_machine_regs.is_stmt)
|
||||||
|
printf (" x");
|
||||||
|
|
||||||
putchar ('\n');
|
putchar ('\n');
|
||||||
state_machine_regs.view++;
|
state_machine_regs.view++;
|
||||||
|
|
||||||
|
|
|
@ -345,13 +345,13 @@ Raw dump of debug contents of section .debug_line:
|
||||||
Contents of the .debug_line section:
|
Contents of the .debug_line section:
|
||||||
|
|
||||||
CU: ./main.c:
|
CU: ./main.c:
|
||||||
File name Line number Starting address View
|
File name Line number Starting address View Stmt
|
||||||
main.c 6 0x1234
|
main.c 6 0x1234 x
|
||||||
main.c 6 0x12346
|
main.c 6 0x12346 x
|
||||||
main.c 6 0x1234
|
main.c 6 0x1234 x
|
||||||
|
|
||||||
main.c 5 0x1234
|
main.c 5 0x1234 x
|
||||||
main.c 5 0x1234
|
main.c 5 0x1234 x
|
||||||
main.c 5 0x1234
|
main.c 5 0x1234 x
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
Contents of the \.debug_line section:
|
Contents of the \.debug_line section:
|
||||||
|
|
||||||
CU: \./dw2-decodedline\.c:
|
CU: \./dw2-decodedline\.c:
|
||||||
File name Line number Starting address View
|
File name Line number Starting address View Stmt
|
||||||
|
|
||||||
directory/file1\.c:
|
directory/file1\.c:
|
||||||
file1\.c 1 .*
|
file1\.c 1 .*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue