diff options
author | Nick Clifton <nickc@redhat.com> | 2003-11-07 12:19:34 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-11-07 12:19:34 +0000 |
commit | f24ddbddc5177a930b867626b12d2bb8b3757223 (patch) | |
tree | fe1b8c0703b20b4e188b7c432488a7e2f8874ab1 /binutils/addr2line.c | |
parent | 65ed7f0a337f0c802f4a7c096c833f20c99dfb3e (diff) | |
download | binutils-f24ddbddc5177a930b867626b12d2bb8b3757223.zip binutils-f24ddbddc5177a930b867626b12d2bb8b3757223.tar.gz binutils-f24ddbddc5177a930b867626b12d2bb8b3757223.tar.bz2 |
Use consistent error messages for missing files.
Detect directories where an ordinary file is expected.
Diffstat (limited to 'binutils/addr2line.c')
-rw-r--r-- | binutils/addr2line.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/binutils/addr2line.c b/binutils/addr2line.c index b5f5a0c..354153e 100644 --- a/binutils/addr2line.c +++ b/binutils/addr2line.c @@ -230,6 +230,9 @@ process_file (const char *file_name, const char *target) bfd *abfd; char **matching; + if (get_file_size (file_name) < 1) + return; + abfd = bfd_openr (file_name, target); if (abfd == NULL) bfd_fatal (file_name); |