aboutsummaryrefslogtreecommitdiff
path: root/binutils/nm.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-11-07 12:19:34 +0000
committerNick Clifton <nickc@redhat.com>2003-11-07 12:19:34 +0000
commitf24ddbddc5177a930b867626b12d2bb8b3757223 (patch)
treefe1b8c0703b20b4e188b7c432488a7e2f8874ab1 /binutils/nm.c
parent65ed7f0a337f0c802f4a7c096c833f20c99dfb3e (diff)
downloadgdb-f24ddbddc5177a930b867626b12d2bb8b3757223.zip
gdb-f24ddbddc5177a930b867626b12d2bb8b3757223.tar.gz
gdb-f24ddbddc5177a930b867626b12d2bb8b3757223.tar.bz2
Use consistent error messages for missing files.
Detect directories where an ordinary file is expected.
Diffstat (limited to 'binutils/nm.c')
-rw-r--r--binutils/nm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/binutils/nm.c b/binutils/nm.c
index d2d38c4..bac7d38 100644
--- a/binutils/nm.c
+++ b/binutils/nm.c
@@ -602,6 +602,9 @@ display_file (char *filename)
bfd *file;
char **matching;
+ if (get_file_size (filename) < 1)
+ return FALSE;
+
file = bfd_openr (filename, target);
if (file == NULL)
{