forked from Imagelibrary/binutils-gdb
gdb: more filename styling
I spotted a few places in solib.c and build-id.c where we could apply file name styling. Other than the extra styling, there should be no user visible changes after this commit. Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
@@ -60,12 +60,14 @@ build_id_verify (bfd *abfd, size_t check_len, const bfd_byte *check)
|
||||
found = build_id_bfd_get (abfd);
|
||||
|
||||
if (found == NULL)
|
||||
warning (_("File \"%s\" has no build-id, file skipped"),
|
||||
bfd_get_filename (abfd));
|
||||
warning (_("File \"%ps\" has no build-id, file skipped"),
|
||||
styled_string (file_name_style.style (),
|
||||
bfd_get_filename (abfd)));
|
||||
else if (found->size != check_len
|
||||
|| memcmp (found->data, check, found->size) != 0)
|
||||
warning (_("File \"%s\" has a different build-id, file skipped"),
|
||||
bfd_get_filename (abfd));
|
||||
warning (_("File \"%ps\" has a different build-id, file skipped"),
|
||||
styled_string (file_name_style.style (),
|
||||
bfd_get_filename (abfd)));
|
||||
else
|
||||
retval = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user