public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb: make timestamped_file implement write_async_safe
@ 2022-04-05  0:57 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2022-04-05  0:57 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ad62fd45460f1c6d9129115f95c9d86bcdbd8ba7

commit ad62fd45460f1c6d9129115f95c9d86bcdbd8ba7
Author: Simon Marchi <simon.marchi@efficios.com>
Date:   Mon Apr 4 20:53:52 2022 -0400

    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

Diff:
---
 gdb/ui-file.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gdb/ui-file.h b/gdb/ui-file.h
index e420555b8a6..bffdeaa28c4 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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-05  0:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-05  0:57 [binutils-gdb] gdb: make timestamped_file implement write_async_safe Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).