diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-04-04 20:53:52 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-04 20:57:22 -0400 |
commit | ad62fd45460f1c6d9129115f95c9d86bcdbd8ba7 (patch) | |
tree | bb7a8286a2bf853c57fc0a34402ba68723978555 /gdb/ui-file.h | |
parent | ef485e453ac9e365ebcbcbcb35b7175405009811 (diff) | |
download | fsf-binutils-gdb-ad62fd45460f1c6d9129115f95c9d86bcdbd8ba7.zip fsf-binutils-gdb-ad62fd45460f1c6d9129115f95c9d86bcdbd8ba7.tar.gz fsf-binutils-gdb-ad62fd45460f1c6d9129115f95c9d86bcdbd8ba7.tar.bz2 |
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
Diffstat (limited to 'gdb/ui-file.h')
-rw-r--r-- | gdb/ui-file.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/ui-file.h b/gdb/ui-file.h index e420555..bffdeaa 100644 --- a/gdb/ui-file.h +++ b/gdb/ui-file.h @@ -405,6 +405,9 @@ public: bool can_emit_style_escape () override { return m_stream->can_emit_style_escape (); } + void write_async_safe (const char *buf, long length_buf) override + { return m_stream->write_async_safe (buf, length_buf); } + DISABLE_COPY_AND_ASSIGN (timestamped_file); void write (const char *buf, long len) override; |