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 | 0fff68c97fc709c6fbfb528bc1e6b720d0fa35f9 (patch) | |
tree | 33ce44867f7df1977a76b83353a2787ed417e6f3 /binutils/addr2line.c | |
parent | 6fdecb9c45ec815fde20f489a1c7c223f5df4f6d (diff) | |
download | binutils-redhat-0fff68c97fc709c6fbfb528bc1e6b720d0fa35f9.tar.gz |
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 b5f5a0c5f1..354153eadb 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); |