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

Go to the source code of this file.

Functions

char * windows_get_absolute_argv0 (const char *argv0)
 
int gdb_select (int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
 
static int rgb_to_16colors (const ui_file_style::color &color)
 
int gdb_console_fputs (const char *linebuf, FILE *fstream)
 
tribool sharing_input_terminal (int pid)
 
static BOOL WINAPI ctrl_c_handler (DWORD event_type)
 
c_c_handler_ftypeinstall_sigint_handler (c_c_handler_ftype *fn)
 

Variables

static int mingw_console_initialized
 
static HANDLE hstdout = INVALID_HANDLE_VALUE
 
static SHORT norm_attr
 
static ui_file_style last_style
 
static c_c_handler_ftypecurrent_handler
 

Function Documentation

◆ ctrl_c_handler()

static BOOL WINAPI ctrl_c_handler ( DWORD event_type)
static

Definition at line 410 of file mingw-hdep.c.

References current_handler.

Referenced by install_sigint_handler().

◆ gdb_console_fputs()

int gdb_console_fputs ( const char * linebuf,
FILE * fstream )

◆ gdb_select()

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

Definition at line 51 of file mingw-hdep.c.

References serial::fd, read(), and serial_for_fd().

Referenced by interruptible_select().

◆ install_sigint_handler()

c_c_handler_ftype * install_sigint_handler ( c_c_handler_ftype * fn)

Definition at line 425 of file mingw-hdep.c.

◆ rgb_to_16colors()

static int rgb_to_16colors ( const ui_file_style::color & color)
static

Definition at line 188 of file mingw-hdep.c.

References bits, and ui_file_style::color::get_rgb().

Referenced by gdb_console_fputs().

◆ sharing_input_terminal()

tribool sharing_input_terminal ( int pid)

Definition at line 379 of file mingw-hdep.c.

◆ windows_get_absolute_argv0()

char * windows_get_absolute_argv0 ( const char * argv0)

Definition at line 34 of file mingw-hdep.c.

Referenced by captured_main_1().

Variable Documentation

◆ current_handler

c_c_handler_ftype* current_handler
static

Definition at line 406 of file mingw-hdep.c.

Referenced by ctrl_c_handler(), and install_sigint_handler().

◆ hstdout

HANDLE hstdout = INVALID_HANDLE_VALUE
static

Definition at line 213 of file mingw-hdep.c.

Referenced by gdb_console_fputs(), and tui_initialize_io().

◆ last_style

ui_file_style last_style
static

Definition at line 219 of file mingw-hdep.c.

Referenced by gdb_console_fputs().

◆ mingw_console_initialized

int mingw_console_initialized
static

Definition at line 210 of file mingw-hdep.c.

Referenced by gdb_console_fputs().

◆ norm_attr

SHORT norm_attr
static

Definition at line 216 of file mingw-hdep.c.

Referenced by gdb_console_fputs().