mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
Use consistent error messages for missing files.
Detect directories where an ordinary file is expected.
This commit is contained in:
@@ -341,8 +341,12 @@ display_archive (bfd *file)
|
||||
static void
|
||||
display_file (char *filename)
|
||||
{
|
||||
bfd *file = bfd_openr (filename, target);
|
||||
bfd *file;
|
||||
|
||||
if (get_file_size (filename) < 1)
|
||||
return;
|
||||
|
||||
file = bfd_openr (filename, target);
|
||||
if (file == NULL)
|
||||
{
|
||||
bfd_nonfatal (filename);
|
||||
|
||||
Reference in New Issue
Block a user