|
GDB (xrefs)
|
#include "defs.h"#include "serial.h"#include "ser-base.h"#include "ser-tcp.h"#include "gdbcmd.h"#include "cli/cli-decode.h"#include "cli/cli-setshow.h"#include "gdbsupport/filestuff.h"#include "gdbsupport/netstuff.h"#include <sys/types.h>#include <sys/ioctl.h>#include "gdbsupport/gdb_sys_time.h"#include <netinet/in.h>#include <arpa/inet.h>#include <netdb.h>#include <sys/socket.h>#include <netinet/tcp.h>#include <signal.h>#include "gdbsupport/gdb_select.h"#include <algorithm>Go to the source code of this file.
Macros | |
| #define | POLL_INTERVAL 5 |
Functions | |
| static int | wait_for_connect (int sock, unsigned int *polls) |
| static int | try_connect (const struct addrinfo *ainfo, unsigned int *polls) |
| int | net_open (struct serial *scb, const char *name) |
| void | net_close (struct serial *scb) |
| int | net_read_prim (struct serial *scb, size_t count) |
| int | net_write_prim (struct serial *scb, const void *buf, size_t count) |
| int | ser_tcp_send_break (struct serial *scb) |
| void | _initialize_ser_tcp () |
Variables | |
| static struct cmd_list_element * | tcp_set_cmdlist |
| static struct cmd_list_element * | tcp_show_cmdlist |
| static bool | tcp_auto_retry = true |
| static unsigned int | tcp_retry_limit = 15 |
| static const struct serial_ops | tcp_ops |
| #define POLL_INTERVAL 5 |
Definition at line 83 of file ser-tcp.c.
Referenced by wait_for_connect().
| void _initialize_ser_tcp | ( | ) |
Definition at line 460 of file ser-tcp.c.
Referenced by initialize_all_files().
| void net_close | ( | struct serial * | scb | ) |
Definition at line 392 of file ser-tcp.c.
References serial::fd.
Referenced by net_open(), and net_windows_close().
| int net_open | ( | struct serial * | scb, |
| const char * | name ) |
Definition at line 276 of file ser-tcp.c.
References serial::fd, gdb_printf(), gdb_stderr, name, net_close(), tcp_auto_retry, try_connect(), and wait_for_connect().
Referenced by net_windows_open().
| int net_read_prim | ( | struct serial * | scb, |
| size_t | count ) |
Definition at line 402 of file ser-tcp.c.
References serial::buf, and serial::fd.
| int net_write_prim | ( | struct serial * | scb, |
| const void * | buf, | ||
| size_t | count ) |
Definition at line 411 of file ser-tcp.c.
References serial::fd.
| int ser_tcp_send_break | ( | struct serial * | scb | ) |
Definition at line 421 of file ser-tcp.c.
References serial_write().
|
static |
Definition at line 164 of file ser-tcp.c.
References err, and wait_for_connect().
Referenced by net_open().
|
static |
Definition at line 91 of file ser-tcp.c.
References deprecated_ui_loop_hook, interruptible_select(), POLL_INTERVAL, and tcp_retry_limit.
Referenced by net_open(), and try_connect().
|
static |
Definition at line 75 of file ser-tcp.c.
Referenced by net_open().
|
static |
|
static |
Definition at line 79 of file ser-tcp.c.
Referenced by wait_for_connect().
|
static |
|
static |