diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-14 06:49:14 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-14 06:49:14 +0000 |
commit | 75f2446ec3c13eca3fe0c7cfdbb232e760d36596 (patch) | |
tree | a243e4c2c79cd8790a316a38b552507b62bf0421 /gold/fileread.h | |
parent | eb4dfdd470e49ab56eed5cead19704e0926530d0 (diff) | |
download | gdb-75f2446ec3c13eca3fe0c7cfdbb232e760d36596.zip gdb-75f2446ec3c13eca3fe0c7cfdbb232e760d36596.tar.gz gdb-75f2446ec3c13eca3fe0c7cfdbb232e760d36596.tar.bz2 |
Run all error handling through an Errors object. Delete output file
on error.
Diffstat (limited to 'gold/fileread.h')
-rw-r--r-- | gold/fileread.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gold/fileread.h b/gold/fileread.h index cf4b3ab..c39f9de 100644 --- a/gold/fileread.h +++ b/gold/fileread.h @@ -290,8 +290,9 @@ class Input_file // method. Input_file(const char* name, const unsigned char* contents, off_t size); - // Open the file. - void + // Open the file. If the open fails, this will report an error and + // return false. + bool open(const General_options&, const Dirsearch&); // Return the name given by the user. For -lc this will return "c". |