GDB (xrefs)
Typedefs | Functions
/tmp/gdb-8.1/gdb/event-loop.h File Reference

Go to the source code of this file.

Typedefs

typedef void * gdb_client_data
 
typedef void() handler_func(int, gdb_client_data)
 
typedef void() sig_handler_func(gdb_client_data)
 
typedef void() async_event_handler_func(gdb_client_data)
 
typedef void() timer_handler_func(gdb_client_data)
 

Functions

void start_event_loop (void)
 
int gdb_do_one_event (void)
 
void delete_file_handler (int fd)
 
void add_file_handler (int fd, handler_func *proc, gdb_client_data client_data)
 
struct async_signal_handlercreate_async_signal_handler (sig_handler_func *proc, gdb_client_data client_data)
 
void delete_async_signal_handler (struct async_signal_handler **)
 
int create_timer (int milliseconds, timer_handler_func *proc, gdb_client_data client_data)
 
void delete_timer (int id)
 
void mark_async_signal_handler (struct async_signal_handler *handler)
 
int async_signal_handler_is_marked (struct async_signal_handler *handler)
 
void clear_async_signal_handler (struct async_signal_handler *handler)
 
struct async_event_handlercreate_async_event_handler (async_event_handler_func *proc, gdb_client_data client_data)
 
void delete_async_event_handler (struct async_event_handler **handler_ptr)
 
void mark_async_event_handler (struct async_event_handler *handler)
 
void clear_async_event_handler (struct async_event_handler *handler)
 
void initialize_async_signal_handlers (void)
 

Typedef Documentation

◆ async_event_handler_func

typedef void() async_event_handler_func(gdb_client_data)

Definition at line 75 of file event-loop.h.

◆ gdb_client_data

typedef void* gdb_client_data

Definition at line 70 of file event-loop.h.

◆ handler_func

typedef void() handler_func(int, gdb_client_data)

Definition at line 73 of file event-loop.h.

◆ sig_handler_func

typedef void() sig_handler_func(gdb_client_data)

Definition at line 74 of file event-loop.h.

◆ timer_handler_func

typedef void() timer_handler_func(gdb_client_data)

Definition at line 76 of file event-loop.h.

Function Documentation

◆ add_file_handler()

void add_file_handler ( int  fd,
handler_func proc,
gdb_client_data  client_data 
)

◆ async_signal_handler_is_marked()

int async_signal_handler_is_marked ( struct async_signal_handler handler)

Definition at line 938 of file event-loop.c.

References async_signal_handler::ready.

◆ clear_async_event_handler()

void clear_async_event_handler ( struct async_event_handler handler)

◆ clear_async_signal_handler()

void clear_async_signal_handler ( struct async_signal_handler handler)

Definition at line 930 of file event-loop.c.

References async_signal_handler::ready.

◆ create_async_event_handler()

struct async_event_handler* create_async_event_handler ( async_event_handler_func proc,
gdb_client_data  client_data 
)

◆ create_async_signal_handler()

struct async_signal_handler* create_async_signal_handler ( sig_handler_func proc,
gdb_client_data  client_data 
)

◆ create_timer()

int create_timer ( int  milliseconds,
timer_handler_func proc,
gdb_client_data  client_data 
)

◆ delete_async_event_handler()

void delete_async_event_handler ( struct async_event_handler **  handler_ptr)

◆ delete_async_signal_handler()

void delete_async_signal_handler ( struct async_signal_handler **  )

Definition at line 984 of file event-loop.c.

References gdb_assert, async_signal_handler::next_handler, sighandler_list, and xfree().

◆ delete_file_handler()

void delete_file_handler ( int  fd)

◆ delete_timer()

void delete_timer ( int  id)

Definition at line 1156 of file event-loop.c.

References gdb_notifier, gdb_timer::next, gdb_timer::timer_id, and timer_list.

Referenced by reschedule(), and ser_base_async().

◆ gdb_do_one_event()

int gdb_do_one_event ( void  )

◆ initialize_async_signal_handlers()

void initialize_async_signal_handlers ( void  )

◆ mark_async_event_handler()

void mark_async_event_handler ( struct async_event_handler handler)

◆ mark_async_signal_handler()

void mark_async_signal_handler ( struct async_signal_handler handler)

◆ start_event_loop()

void start_event_loop ( void  )