OSDN Git Service

Pass stderr of program run with "target remote |"
authorvprus <vprus>
Sun, 8 Apr 2007 15:20:04 +0000 (15:20 +0000)
committervprus <vprus>
Sun, 8 Apr 2007 15:20:04 +0000 (15:20 +0000)
commit2232767d3dc1c452777e38958550d0f50bd87635
treee9e249ae8f71250ffee6e57e5b5a43ef33e9f586
parent426531bc3a167e685f192309f769924ad3004bda
    Pass stderr of program run with "target remote |"
        via gdb_stderr.
        * serial.c (serial_open): Set error_fd to -1.
        * serial.h (struct serial): New field error_fd.
        (struct serial_opts): New field avail.
        * ser-pipe.c (pipe_open): Create another pair
        of sockets.  Pass stderr to gdb.
        * ser-mingw.c (pipe_windows_open): Pass
        PEX_STDERR_TO_PIPE to pex_run.  Initialize
        sd->error_fd.
        (pipe_avail): New.
        (_initialize_ser_windows): Hook pipe_avail.
        * ser-base.c (generic_readchar): Check if there's
        anything in stderr channel and route that to gdb_stderr.
gdb/ChangeLog
gdb/ser-base.c
gdb/ser-mingw.c
gdb/ser-pipe.c
gdb/serial.c
gdb/serial.h