mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
Adjust the decoded line output to fit into 80 columns.
PR 30216 * dwarf.c (display_debug_lines_decoded): Reduce space for filenames. * testsuite/binutils-all/dw5.W: Adjust expected output. * testsuite/binutils-all/objdump.WL: Adjust expected output.
This commit is contained in:
@@ -5246,7 +5246,12 @@ display_debug_lines_decoded (struct dwarf_section * section,
|
||||
}
|
||||
|
||||
if (n_files > 0)
|
||||
printf (_("File name Line number Starting address View Stmt\n"));
|
||||
{
|
||||
if (do_wide)
|
||||
printf (_("File name Line number Starting address View Stmt\n"));
|
||||
else
|
||||
printf (_("File name Line number Starting address View Stmt\n"));
|
||||
}
|
||||
else
|
||||
printf (_("CU: Empty file name table\n"));
|
||||
saved_linfo = linfo;
|
||||
@@ -5572,23 +5577,23 @@ display_debug_lines_decoded (struct dwarf_section * section,
|
||||
if (linfo.li_max_ops_per_insn == 1)
|
||||
{
|
||||
if (xop == -DW_LNE_end_sequence)
|
||||
printf ("%-35s %11s %#18" PRIx64,
|
||||
printf ("%-31s %11s %#18" PRIx64,
|
||||
newFileName, "-",
|
||||
state_machine_regs.address);
|
||||
else
|
||||
printf ("%-35s %11d %#18" PRIx64,
|
||||
printf ("%-31s %11d %#18" PRIx64,
|
||||
newFileName, state_machine_regs.line,
|
||||
state_machine_regs.address);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (xop == -DW_LNE_end_sequence)
|
||||
printf ("%-35s %11s %#18" PRIx64 "[%d]",
|
||||
printf ("%-31s %11s %#18" PRIx64 "[%d]",
|
||||
newFileName, "-",
|
||||
state_machine_regs.address,
|
||||
state_machine_regs.op_index);
|
||||
else
|
||||
printf ("%-35s %11d %#18" PRIx64 "[%d]",
|
||||
printf ("%-31s %11d %#18" PRIx64 "[%d]",
|
||||
newFileName, state_machine_regs.line,
|
||||
state_machine_regs.address,
|
||||
state_machine_regs.op_index);
|
||||
|
||||
Reference in New Issue
Block a user