aboutsummaryrefslogtreecommitdiff
path: root/gold/fileread.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-04 05:49:04 +0000
committerIan Lance Taylor <iant@google.com>2007-10-04 05:49:04 +0000
commitad2d6943a49fa11ba1e23749973c75feb12dcf6b (patch)
treebc02409b029014fba4f735d3dea15217bbb58c9b /gold/fileread.h
parent4638dbaa96a30d93647bb737b9a49ee1ca878a7d (diff)
downloadgdb-ad2d6943a49fa11ba1e23749973c75feb12dcf6b.zip
gdb-ad2d6943a49fa11ba1e23749973c75feb12dcf6b.tar.gz
gdb-ad2d6943a49fa11ba1e23749973c75feb12dcf6b.tar.bz2
Full support for --sysroot.
Diffstat (limited to 'gold/fileread.h')
-rw-r--r--gold/fileread.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/gold/fileread.h b/gold/fileread.h
index cda5d9c..abeb28e 100644
--- a/gold/fileread.h
+++ b/gold/fileread.h
@@ -260,7 +260,7 @@ class Input_file
{
public:
Input_file(const Input_file_argument* input_argument)
- : input_argument_(input_argument), file_()
+ : input_argument_(input_argument), file_(), is_in_sysroot_(false)
{ }
// Create an input file with the contents already provided. This is
@@ -292,12 +292,21 @@ class Input_file
file()
{ return this->file_; }
+ // Whether we found the file in a directory in the system root.
+ bool
+ is_in_sysroot() const
+ { return this->is_in_sysroot_; }
+
private:
Input_file(const Input_file&);
Input_file& operator=(const Input_file&);
+ // The argument from the command line.
const Input_file_argument* input_argument_;
+ // The file after we open it.
File_read file_;
+ // Whether we found the file in a directory in the system root.
+ bool is_in_sysroot_;
};
} // end namespace gold