Mark Mitchell
b450502905
* configure.ac: On MinGW, define USE_WIN32API and link with
...
-lws2_32.
* ser-tcp.c (<winsock2.h>): Include, for Windows.
(ETIMEDOUT): Define, for Windows.
(ioctl): Likewise.
(closesocket): Define, for POSIX.
(net_open): Adjust for differences in socket functions between
Windows and UNIX.
(net_close): Likweise.
(net_read_prim): New function.
(net_write_prim): Likewise.
(_initialize_ser_tcp): Initialize winsock. Fill in read_prim and
write_prim.
* ser-unix.h (ser_unix_readcchar): Remove.
(ser_unix_read_prim): Declare.
(ser_unix_write_prim): Likewise.
* ser-unix.c (generic_readchar): Move to ser-base.c.
(ser_unix_wait_for): Likewise.
(do_unix_readchar): Likewise.
(ser_unix_readchar): Likewise.
(_initialize_ser_hardwire): Initialize read_prim and write_prim.
(ser_unix_read_prim): New function.
(ser_unix_write_prim): Likewise.
* ser-base.h (generic_readchar): Declare.
(ser_base_readchar): Likewise.
* ser-base.c (<winsock2.h>): Include, for windows.
(fd_event): Use the read primitive specified by the serial
interface.
(ser_base_wait_for): Moved from ser-unix.c
(do_ser_base_read_char): Likewise.
(generic_readchar): Likewise.
(ser_base_readchar): Likewise.
(ser_base_write): Use the write primitive specified by the serial
interface.
* ser-pipe.c (_initialize_ser_pipe): Use ser_base_readchar, not
ser_unix_readchar. Initialize read_prim and write_prim.
* serial.c (struct serial_ops): Add read_prim and write_prim.
* configure: Regenerate.
2005-04-21 05:34:33 +00:00
Mark Mitchell
dd5da072a1
* ser-base.c (ser_unix_write): Rename to ...
...
(ser_base_write): ... this.
(ser_unix_nop_flush_output): Rename to ...
(ser_base_flush_output): ... this.
(ser_unix_flush_input): Rename to ...
(ser_base_flush_input): ... this.
(ser_unix_nop_send_break): Rename to ...
(ser_base_send_break): ... this.
(ser_unix_nop_drain_output): Rename to ...
(ser_base_drain_output): ... this.
(ser_unix_nop_raw): Rename to ...
(ser_base_raw): ... this.
(ser_unix_nop_get_tty_state): Rename to ...
(ser_base_set_tty_state): ... this.
(ser_unix_nop_noflush_set_tty_state): Rename to ...
(ser_base_noflush_set_tty_state): ... this.
(ser_unix_nop_print_tty_state): Rename to ...
(ser_base_print_tty_state): ... this.
(ser_unix_nop_setbaudrate): Rename to ...
(ser_base_setbaudrate): ... this.
(ser_unix_nop_setstopbits): Rename to ...
(ser_base_setstopbits): ... this.
(ser_unix_async): Rename to ...
(ser_base_async): ... this.
* ser-base.h (ser_unix_write): Rename to ...
(ser_base_write): ... this.
(ser_unix_nop_flush_output): Rename to ...
(ser_base_flush_output): ... this.
(ser_unix_flush_input): Rename to ...
(ser_base_flush_input): ... this.
(ser_unix_nop_send_break): Rename to ...
(ser_base_send_break): ... this.
(ser_unix_nop_drain_output): Rename to ...
(ser_base_drain_output): ... this.
(ser_unix_nop_raw): Rename to ...
(ser_base_raw): ... this.
(ser_unix_nop_get_tty_state): Rename to ...
(ser_base_set_tty_state): ... this.
(ser_unix_nop_noflush_set_tty_state): Rename to ...
(ser_base_noflush_set_tty_state): ... this.
(ser_unix_nop_print_tty_state): Rename to ...
(ser_base_print_tty_state): ... this.
(ser_unix_nop_setbaudrate): Rename to ...
(ser_base_setbaudrate): ... this.
(ser_unix_nop_setstopbits): Rename to ...
(ser_base_setstopbits): ... this.
(ser_unix_async): Rename to ...
(ser_base_async): ... this.
* ser-pipe.c (_initialize_ser_pipe): Update accordingly.
* ser-tcp.c (_initialize_ser_tcp): Likewise.
* ser-unix.c (hardwire_flush_input): Likewise.
(_initializer_ser_hardwire): Likewise.
2005-03-25 20:06:36 +00:00
Mark Mitchell
3eb25fda5d
* Makefile.in (SFILES): Add ser-base.c.
...
(ser_base_h): New variable.
(ser-base.o): New target.
(ser-pipe.o): Depend on $(ser_base_h).
(ser-tcp.o): Likewise.
(ser-unix.o): Likewise. Do not depend on $(event_loop_h).
* configure.ac (SER_HARDWIRE): Include ser-base.o where
appropriate.
* ser-base.c: New file.
(push_event): Move from ser-unix.c.
(fd_event): Likewise.
(reschedule): Likewise.
(ser_unix_write): Likewise.
(ser_unix_nop_flush_output): Likewise.
(ser_unix_flush_input): Likewise.
(ser_unix_nop_send_break): Likewise.
(ser_unix_nop_drain_output): Likewise.
(ser_unix_nop_raw): Likewise.
(ser_unix_nop_get_tty_state): Likewise.
(ser_unix_nop_set_tty_state): Likewise.
(ser_unix_nop_noflush_set_tty_state): Likewise.
(ser_unix_nop_print_tty_state): Likewise.
(ser_unix_nop_setbaudrate): Likewise.
(ser_unix_nop_setstopbits): Likewise.
(ser_unix_async): Likewise.
* ser-base.h: New file.
* ser-pipe.c (ser-base.h): Include it.
* ser-tcp.c (ser-base.h): Likewise.
* ser-unix.h (ser_unix_nop_flush_output): Remove.
(ser_unix_flush_input): Likewise.
(ser_unix_nop_send_break): Likewise.
(ser_unix_nop_raw): Likewise.
(ser_unix_nop_get_tty_state): Likewise.
(ser_unix_nop_set_tty_state): Likewise.
(ser_unix_nop_print_tty_state): Likewise.
(ser_unix_nop_noflush_set_tty_state): Likewise.
(ser_unix_nop_setbaudrate): Likewise.
(ser_unix_nop_setstopbits): Likewise.
(ser_unix_nop_drain_output): Likewise.
(ser_unix_wait_for): Likewise.
(ser_unix_write): Likewise.
(ser_unix_async): Likewise.
* ser-unix.c (event-loop.h): Do not include it.
(push_event): Move to ser-base.c.
(fd_event): Likewise.
(reschedule): Likewise.
(ser_unix_write): Likewise.
(ser_unix_nop_flush_output): Likewise.
(ser_unix_flush_input): Likewise.
(ser_unix_nop_send_break): Likewise.
(ser_unix_nop_drain_output): Likewise.
(ser_unix_nop_raw): Likewise.
(ser_unix_nop_get_tty_state): Likewise.
(ser_unix_nop_set_tty_state): Likewise.
(ser_unix_nop_noflush_set_tty_state): Likewise.
(ser_unix_nop_print_tty_state): Likewise.
(ser_unix_nop_setbaudrate): Likewise.
(ser_unix_nop_setstopbits): Likewise.
(ser_unix_async): Likewise.
(ser_unix_wait_for): Make it static.
* configure: Regenerated.
2005-03-25 19:47:23 +00:00
Mark Kettenis
36662fde7b
* ser-pipe.c (pipe_open): Use proper null pointer in execl call.
...
* cli/cli-cmds.c (shell_escape): Likewise.
2004-01-22 22:20:39 +00:00
Ian Lance Taylor
2fdbdd3980
* ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
...
second and third arguments.
* ser-tcp.c (_initialize_ser_tcp): Likewise.
* ser-unix.c (_initialize_ser_hardwire): Likewise.
2003-05-13 19:40:11 +00:00
Andrew Cagney
819cc32466
s/typedef serial_t/struct serial */
2001-07-11 17:52:32 +00:00
Kevin Buettner
7700434b5c
Add comments noting that vfork might be defined to be fork.
2001-04-08 18:26:03 +00:00
Kevin Buettner
b6ba6518e9
Update/correct copyright notices.
2001-03-06 08:22:02 +00:00
J.T. Conklin
042be3a9b3
* signals.h: Removed.
...
* event-top.c (#include <signal.h>): Changed from signals.h.
* inflow.c: Likewise.
* mac-xdep.c: Likewise.
* ser-pipe.c: Likewise.
* ser-tcp.c: Likewise.
* standalone.c: Likewise.
* top.c: Likewise.
* utils.c: Likewise.
* Makefile.in: Removed signals.h from dependencies.
2001-02-06 04:17:03 +00:00
J.T. Conklin
824670030b
* monitor.c (#include "gdb_wait.h"): Removed.
...
* ocd.c: Likewise.
* ppc-bdm.c: Likewise.
* remote-adapt.c: Likewise.
* remote-array.c: Likewise.
* remote-bug.c: Likewise.
* remote-e7000.c: Likewise.
* remote-eb.c: Likewise.
* remote-es.c: Likewise.
* remote-mips.c: Likewise.
* remote-mm.c: Likewise.
* remote-nindy.c: Likewise.
* remote-os9k.c: Likewise.
* remote-rdi.c: Likewise.
* remote-rdp.c: Likewise.
* remote-sds.c: Likewise.
* remote-sim.c: Likewise.
* remote-st.c: Likewise.
* remote-udi.c: Likewise.
* remote-vx.c: Likewise.
* remote-vx29k.c: Likewise.
* remote-vx68.c: Likewise.
* remote-vx960.c: Likewise.
* remote-vxmips.c: Likewise.
* remote-vxsparc.c: Likewise.
* remote.c: Likewise.
* ser-pipe.c: Likewise.
* ser-unix.c: Likewise.
* Makefile.in: Updated dependencies.
-------------------------------------------------------------------
2001-02-02 19:14:33 +00:00
David Smith
27b82ed26e
2001-01-31 David Smith <dsmith@redhat.com>
...
* event-loop.c: Change inclusion of string.h to gdb_string.h and
updated the copyright notice.
* ser-pipe.c: Ditto.
* mi/mi-cmds.c: Ditto.
* mi/mi-console.c: Ditto.
* mi/mi-getopt.c: Ditto.
* mi/mi-parse.c: Ditto.
2001-01-31 15:46:36 +00:00
Andrew Cagney
74c1b268c6
Cleanup autoconfigury of vfork().
2001-01-31 02:08:23 +00:00
Kevin Buettner
b8c9b27d1e
Replace free() with xfree().
2000-12-15 01:01:51 +00:00
Andrew Cagney
818fa2bf21
Add check for vfork() to configure.in. Cleanup uses.
2000-12-02 15:40:56 +00:00
Andrew Cagney
03f2053f96
Replace ../include/wait.h with gdb_wait.h.
2000-02-09 08:52:47 +00:00
Jason Molenda
c2d11a7da0
import gdb-1999-12-06 snapshot
1999-12-07 03:56:43 +00:00
Jason Molenda
2acceee218
import gdb-1999-10-04 snapshot
1999-10-05 23:13:56 +00:00
Jason Molenda
c2c6d25f0d
import gdb-1999-09-21
1999-09-22 03:28:34 +00:00
Stan Shebs
d4f3574e77
import gdb-1999-09-08 snapshot
1999-09-09 00:02:17 +00:00
Jason Molenda
104c1213b4
import gdb-1999-08-30 snapshot
1999-08-31 01:14:27 +00:00
Jason Molenda
96baa820df
import gdb-1999-08-09 snapshot
1999-08-09 21:36:23 +00:00
Jason Molenda
adf40b2e16
import gdb-1999-07-19 snapshot
1999-07-19 23:30:11 +00:00
Jason Molenda
daf3f280eb
import gdb-1999-07-12 snapshot
1999-07-12 18:08:43 +00:00