This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug mi/22999] New: 'set debug lin-lwp 1' is broken with MI


https://sourceware.org/bugzilla/show_bug.cgi?id=22999

            Bug ID: 22999
           Summary: 'set debug lin-lwp 1' is broken with MI
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mi
          Assignee: unassigned at sourceware dot org
          Reporter: simon.marchi at ericsson dot com
  Target Milestone: ---

As reported here:

https://sourceware.org/ml/gdb/2018-03/msg00032.html

This crashes:

  gdb -ex "set debug lin-lwp 1" -ex start program

Our sigchld_handler wants to write some debug output using
ui_file::write_async_safe, but mi_console_file doesn't implement that method,
so it reaches the default implementation:

  virtual void write_async_safe (const char *buf, long length_buf)
  { gdb_assert_not_reached ("write_async_safe"); }

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]