mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
Add missing newlines in readelf -n output
* readelf.c (process_note): Print newline after description data in narrow mode. (print_core_note): Print newline if nothing was printed in wide mode.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2017-07-11 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
* readelf.c (process_note): Print newline after description data
|
||||||
|
in narrow mode.
|
||||||
|
(print_core_note): Print newline if nothing was printed in wide
|
||||||
|
mode.
|
||||||
|
|
||||||
2017-07-09 Rafael Fontenelle <rafaelff@gnome.org>
|
2017-07-09 Rafael Fontenelle <rafaelff@gnome.org>
|
||||||
|
|
||||||
* dwarf.c (display_formatted_table): Fix error message typo.
|
* dwarf.c (display_formatted_table): Fix error message typo.
|
||||||
|
@ -16217,7 +16217,11 @@ print_core_note (Elf_Internal_Note *pnote)
|
|||||||
unsigned char *descdata, *filenames, *descend;
|
unsigned char *descdata, *filenames, *descend;
|
||||||
|
|
||||||
if (pnote->type != NT_FILE)
|
if (pnote->type != NT_FILE)
|
||||||
return TRUE;
|
{
|
||||||
|
if (do_wide)
|
||||||
|
printf ("\n");
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef BFD64
|
#ifndef BFD64
|
||||||
if (!is_32bit_elf)
|
if (!is_32bit_elf)
|
||||||
@ -17497,6 +17501,8 @@ process_note (Elf_Internal_Note * pnote,
|
|||||||
printf (_(" description data: "));
|
printf (_(" description data: "));
|
||||||
for (i = 0; i < pnote->descsz; i++)
|
for (i = 0; i < pnote->descsz; i++)
|
||||||
printf ("%02x ", pnote->descdata[i]);
|
printf ("%02x ", pnote->descdata[i]);
|
||||||
|
if (!do_wide)
|
||||||
|
printf ("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (do_wide)
|
if (do_wide)
|
||||||
|
Reference in New Issue
Block a user