diff options
author | Tom Tromey <tom@tromey.com> | 2022-12-27 16:34:44 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-12-28 08:55:40 -0700 |
commit | a60535c39ba52d88c47740db6ab116db32e2331a (patch) | |
tree | 4eb843517714633ee45e0b39bba8ee596efa06be /gdb/top.c | |
parent | 47ecb26f71563b119667c1289a113358f53410b0 (diff) | |
download | gdb-a60535c39ba52d88c47740db6ab116db32e2331a.zip gdb-a60535c39ba52d88c47740db6ab116db32e2331a.tar.gz gdb-a60535c39ba52d88c47740db6ab116db32e2331a.tar.bz2 |
Fix "set debug timestamp"
PR cli/29945 points out that "set debug timestamp 1" stopped working
-- this is a regression due to commit b8043d27 ("Remove a ui-related
memory leak").
This patch fixes the bug and adds a regression test.
I think this should probably be backported to the gdb 13 branch.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29945
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -305,7 +305,7 @@ ui::ui (FILE *instream_, FILE *outstream_, FILE *errstream_) m_gdb_stdout (new pager_file (new stdio_file (outstream))), m_gdb_stdin (new stdio_file (instream)), m_gdb_stderr (new stderr_file (errstream)), - m_gdb_stdlog (m_gdb_stderr) + m_gdb_stdlog (new timestamped_file (m_gdb_stderr)) { unbuffer_stream (instream_); |