diff options
author | Ian Lance Taylor <iant@google.com> | 2008-03-13 01:46:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-03-13 01:46:17 +0000 |
commit | 2285a61069d360fc56b6cf7371a6fe3ac4e240b7 (patch) | |
tree | 9ec30b1d79e193e37204f5e2e06c5c42fceb5d56 /gold/parameters.h | |
parent | 858b27aeedf30683566a6f25045977644f0e7d23 (diff) | |
download | gdb-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/parameters.h')
-rw-r--r-- | gold/parameters.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gold/parameters.h b/gold/parameters.h index 3b10228..f932f73 100644 --- a/gold/parameters.h +++ b/gold/parameters.h @@ -116,7 +116,9 @@ class Parameters int debug() const { - gold_assert(this->options_valid()); + // This can be called before the options are set up. + if (!this->options_valid()) + return 0; return debug_; } |