binutils/
2011-10-04 Paul Woegerer <paul_woegerer@mentor.com> Carlos O'Donell <carlos@codesourcery.com> * dwarf.c (display_debug_lines_decoded): Index directory_table with directory_index from file_table entry. binutils/testsuite/ 2011-10-04 Carlos O'Donell <carlos@codesourcery.com> * binutils-all/dw2-decodedline.S: New file. * binutils-all/objdump.WL: New file. * binutils-all/objdump.exp: Update copyright year. New test case for -WL.
This commit is contained in:
parent
cb6be26b8b
commit
4eee63bce8
6 changed files with 74 additions and 4 deletions
|
@ -2961,9 +2961,10 @@ display_debug_lines_decoded (struct dwarf_section *section,
|
|||
}
|
||||
else
|
||||
{
|
||||
if (do_wide || strlen ((char *) directory_table[0]) < 76)
|
||||
printf (_("CU: %s/%s:\n"), directory_table[0],
|
||||
file_table[0].name);
|
||||
unsigned int ix = file_table[0].directory_index;
|
||||
const char *directory = ix ? (char *)directory_table[ix - 1] : ".";
|
||||
if (do_wide || strlen (directory) < 76)
|
||||
printf (_("CU: %s/%s:\n"), directory, file_table[0].name);
|
||||
else
|
||||
printf ("%s:\n", file_table[0].name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue