gdb: make timestamped_file implement write_async_safe
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 5 Apr 2022 00:53:52 +0000 (20:53 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 5 Apr 2022 00:57:22 +0000 (20:57 -0400)
commitad62fd45460f1c6d9129115f95c9d86bcdbd8ba7
treebb7a8286a2bf853c57fc0a34402ba68723978555
parentef485e453ac9e365ebcbcbcb35b7175405009811
gdb: make timestamped_file implement write_async_safe

Trying to use "set debug linux-nat 1", I get an internal error:

    /home/smarchi/src/binutils-gdb/gdb/ui-file.h:70: internal-error: write_async_safe: write_async_safe

The problem is that timestamped_file doesn't implement write_async_safe,
which linux-nat's sigchld_handler uses.  Implement it.

Change-Id: I830981010c6119f13ae673605ed015cced0f5ee8
gdb/ui-file.h