aboutsummaryrefslogtreecommitdiff
path: root/gold/fileread.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-03-13 01:46:17 +0000
committerIan Lance Taylor <iant@google.com>2008-03-13 01:46:17 +0000
commit2285a61069d360fc56b6cf7371a6fe3ac4e240b7 (patch)
tree9ec30b1d79e193e37204f5e2e06c5c42fceb5d56 /gold/fileread.cc
parent858b27aeedf30683566a6f25045977644f0e7d23 (diff)
downloadgdb-2285a61069d360fc56b6cf7371a6fe3ac4e240b7.zip
gdb-2285a61069d360fc56b6cf7371a6fe3ac4e240b7.tar.gz
gdb-2285a61069d360fc56b6cf7371a6fe3ac4e240b7.tar.bz2
From Craig Silverstein: Implement --debug=files to track file opens,
and implement --verbose as a synonym.
Diffstat (limited to 'gold/fileread.cc')
-rw-r--r--gold/fileread.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/fileread.cc b/gold/fileread.cc
index 2931d43..14d3b0d 100644
--- a/gold/fileread.cc
+++ b/gold/fileread.cc
@@ -30,6 +30,7 @@
#include <sys/uio.h>
#include "filenames.h"
+#include "debug.h"
#include "parameters.h"
#include "options.h"
#include "dirsearch.h"
@@ -118,6 +119,8 @@ File_read::open(const Task* task, const std::string& name)
gold_error(_("%s: fstat failed: %s"),
this->name_.c_str(), strerror(errno));
this->size_ = s.st_size;
+ gold_debug(DEBUG_FILES, "Attempt to open %s succeeded",
+ this->name_.c_str());
}
this->token_.add_writer(task);