GDB (API)
Defines | Typedefs | Functions | Variables
/home/stan/gdb/src/gdb/event-loop.c File Reference
#include "defs.h"
#include "event-loop.h"
#include "event-top.h"
#include "queue.h"
#include <sys/types.h>
#include "gdb_string.h"
#include <errno.h>
#include <sys/time.h>
#include "exceptions.h"
#include "gdb_assert.h"
#include "gdb_select.h"

Go to the source code of this file.

Defines

#define GDB_READABLE   (1<<1)
#define GDB_WRITABLE   (1<<2)
#define GDB_EXCEPTION   (1<<3)
#define USE_POLL   0

Typedefs

typedef union event_data event_data
typedef struct gdb_event gdb_event
typedef void( event_handler_func )(event_data)
typedef struct gdb_eventgdb_event_p
typedef struct file_handler file_handler
typedef struct async_signal_handler async_signal_handler
typedef struct async_event_handler async_event_handler

Functions

 DECLARE_QUEUE_P (gdb_event_p)
 DEFINE_QUEUE_P (gdb_event_p)
void initialize_event_loop (void)
int gdb_do_one_event (void)
void start_event_loop (void)
void add_file_handler (int fd, handler_func *proc, gdb_client_data client_data)
void delete_file_handler (int fd)
async_signal_handlercreate_async_signal_handler (sig_handler_func *proc, gdb_client_data client_data)
void call_async_signal_handler (struct async_signal_handler *handler)
void mark_async_signal_handler (async_signal_handler *async_handler_ptr)
void delete_async_signal_handler (async_signal_handler **async_handler_ptr)
async_event_handlercreate_async_event_handler (async_event_handler_func *proc, gdb_client_data client_data)
void mark_async_event_handler (async_event_handler *async_handler_ptr)
void delete_async_event_handler (async_event_handler **async_handler_ptr)
int create_timer (int milliseconds, timer_handler_func *proc, gdb_client_data client_data)
void delete_timer (int id)

Variables

 gdb_notifier

Define Documentation

#define GDB_EXCEPTION   (1<<3)

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

#define GDB_READABLE   (1<<1)

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

#define GDB_WRITABLE   (1<<2)

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

#define USE_POLL   0

Typedef Documentation

typedef union event_data event_data
typedef void( event_handler_func)(event_data)

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

typedef struct file_handler file_handler
typedef struct gdb_event gdb_event

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

typedef struct gdb_event * gdb_event_p

Function Documentation

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

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

void call_async_signal_handler ( struct async_signal_handler handler)

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

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

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

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

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

void delete_async_event_handler ( async_event_handler **  async_handler_ptr)

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

void delete_async_signal_handler ( async_signal_handler **  async_handler_ptr)

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

void delete_file_handler ( int  fd)

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

void delete_timer ( int  id)

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

int gdb_do_one_event ( void  )

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

void initialize_event_loop ( void  )

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

void mark_async_event_handler ( async_event_handler async_handler_ptr)

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

void mark_async_signal_handler ( async_signal_handler async_handler_ptr)

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

void start_event_loop ( void  )

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


Variable Documentation

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

struct gdb_timer* first_timer

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

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

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

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines