GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
posix-hdep.c File Reference
#include "defs.h"
#include "gdbsupport/event-loop.h"
#include "gdbsupport/gdb_select.h"
#include "inferior.h"
#include <signal.h>

Go to the source code of this file.

Functions

int gdb_select (int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
 
int gdb_console_fputs (const char *buf, FILE *f)
 
tribool sharing_input_terminal (int pid)
 
static void handler_wrapper (int num)
 
c_c_handler_ftypeinstall_sigint_handler (c_c_handler_ftype *fn)
 

Variables

static c_c_handler_ftypecurrent_handler
 

Function Documentation

◆ gdb_console_fputs()

int gdb_console_fputs ( const char * buf,
FILE * f )

Definition at line 38 of file posix-hdep.c.

Referenced by stdio_file::puts().

◆ gdb_select()

int gdb_select ( int n,
fd_set * readfds,
fd_set * writefds,
fd_set * exceptfds,
struct timeval * timeout )

Definition at line 29 of file posix-hdep.c.

◆ handler_wrapper()

static void handler_wrapper ( int num)
static

Definition at line 66 of file posix-hdep.c.

References current_handler, and handler_wrapper().

Referenced by handler_wrapper(), and install_sigint_handler().

◆ install_sigint_handler()

c_c_handler_ftype * install_sigint_handler ( c_c_handler_ftype * fn)

◆ sharing_input_terminal()

tribool sharing_input_terminal ( int pid)

Definition at line 46 of file posix-hdep.c.

References is_gdb_terminal(), and pid.

Variable Documentation

◆ current_handler

c_c_handler_ftype* current_handler
static

Definition at line 62 of file posix-hdep.c.

Referenced by handler_wrapper(), and install_sigint_handler().