Don't let tee_file own a stream
authorTom Tromey <tromey@adacore.com>
Thu, 17 Nov 2022 16:09:59 +0000 (09:09 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 28 Nov 2022 20:22:40 +0000 (13:22 -0700)
commit2b141965f2ddef8cf3e79d357768a98c8703a5df
tree717f4e830e5feda928ea4202711e3079a3ec4515
parent19622df10dd5a8d3567e79d0661770029e4fbcfe
Don't let tee_file own a stream

Right now, tee_file owns the second stream it writes to.  This is done
for the convenience of the users.  In a subsequent patch, this will no
longer be convenient, so this patch moves the responsibility for
ownership to the users of tee_file.
gdb/cli/cli-interp.c
gdb/cli/cli-interp.h
gdb/mi/mi-interp.c
gdb/mi/mi-interp.h
gdb/ui-file.c
gdb/ui-file.h