]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/utils.h
Add new timestamped_file class
authorTom Tromey <tom@tromey.com>
Fri, 31 Dec 2021 18:44:19 +0000 (11:44 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 28 Mar 2022 20:13:28 +0000 (14:13 -0600)
commit3c6c449e304413f513db5635abd2181776f7db92
tree5893f61deb6f79f3c3107c06c961ccc4cad8bb49
parent8b1931b39443acab9d1f8272a8a81b261f7ef29b
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.
gdb/ui-file.c
gdb/ui-file.h
gdb/utils.c
gdb/utils.h