diff options
author | 2021-12-31 11:44:19 -0700 | |
---|---|---|
committer | 2022-03-28 14:13:28 -0600 | |
commit | 3c6c449e304413f513db5635abd2181776f7db92 (patch) | |
tree | 5893f61deb6f79f3c3107c06c961ccc4cad8bb49 /gdb/utils.c | |
parent | Use unique_ptr in CLI logging code (diff) | |
download | binutils-gdb-3c6c449e304413f513db5635abd2181776f7db92.tar.gz binutils-gdb-3c6c449e304413f513db5635abd2181776f7db92.tar.bz2 binutils-gdb-3c6c449e304413f513db5635abd2181776f7db92.zip |
Add new timestamped_file class
This adds a "timestamped_file" subclass of ui_file. This class adds a
timestamp to its output when appropriate. That is, it follows the
rule already used in vfprintf_unfiltered of adding a timestamp at most
once per write.
The new class is not yet used.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index a8d6c96386d..8dd70087d0c 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -103,7 +103,7 @@ static std::chrono::steady_clock::duration prompt_for_continue_wait_time; /* A flag indicating whether to timestamp debugging messages. */ -static bool debug_timestamp = false; +bool debug_timestamp = false; /* True means that strings with character values >0x7F should be printed as octal escapes. False means just print the value (e.g. it's an |