GDB (xrefs)
Functions | Variables
/tmp/gdb-8.1/gdb/remote-notif.c File Reference
#include "defs.h"
#include "remote.h"
#include "remote-notif.h"
#include "observer.h"
#include "event-loop.h"
#include "target.h"
#include "inferior.h"
#include "infrun.h"
#include "gdbcmd.h"

Go to the source code of this file.

Functions

 gdb_static_assert (ARRAY_SIZE(notifs)==REMOTE_NOTIF_LAST)
 
static void do_notif_event_xfree (void *arg)
 
void remote_notif_ack (struct notif_client *nc, char *buf)
 
struct notif_eventremote_notif_parse (struct notif_client *nc, char *buf)
 
 DEFINE_QUEUE_P (notif_client_p)
 
void remote_notif_process (struct remote_notif_state *state, struct notif_client *except)
 
static void remote_async_get_pending_events_handler (gdb_client_data data)
 
void handle_notification (struct remote_notif_state *state, char *buf)
 
void notif_event_xfree (struct notif_event *event)
 
struct remote_notif_stateremote_notif_state_allocate (void)
 
void remote_notif_state_xfree (struct remote_notif_state *state)
 
void _initialize_notif (void)
 

Variables

int notif_debug = 0
 
static struct notif_clientnotifs []
 

Function Documentation

◆ _initialize_notif()

void _initialize_notif ( void  )

Definition at line 274 of file remote-notif.c.

References _, add_setshow_boolean_cmd(), no_class, notif_debug, setdebuglist, and showdebuglist.

◆ DEFINE_QUEUE_P()

DEFINE_QUEUE_P ( notif_client_p  )

◆ do_notif_event_xfree()

static void do_notif_event_xfree ( void *  arg)
static

Definition at line 231 of file remote-notif.c.

References notif_event_xfree().

Referenced by remote_notif_ack(), and remote_notif_parse().

◆ gdb_static_assert()

gdb_static_assert ( ARRAY_SIZE(notifs = =REMOTE_NOTIF_LAST)

◆ handle_notification()

void handle_notification ( struct remote_notif_state state,
char *  buf 
)

◆ notif_event_xfree()

void notif_event_xfree ( struct notif_event event)

Definition at line 220 of file remote-notif.c.

References notif_event::dtr, and xfree().

Referenced by do_notif_event_xfree(), QUEUE(), and remote_notif_state_xfree().

◆ remote_async_get_pending_events_handler()

static void remote_async_get_pending_events_handler ( gdb_client_data  data)
static

Definition at line 117 of file remote-notif.c.

References gdb_assert, remote_notif_process(), and target_is_non_stop_p().

Referenced by remote_notif_state_allocate().

◆ remote_notif_ack()

void remote_notif_ack ( struct notif_client nc,
char *  buf 
)

◆ remote_notif_parse()

struct notif_event* remote_notif_parse ( struct notif_client nc,
char *  buf 
)

◆ remote_notif_process()

void remote_notif_process ( struct remote_notif_state state,
struct notif_client except 
)

◆ remote_notif_state_allocate()

struct remote_notif_state* remote_notif_state_allocate ( void  )

◆ remote_notif_state_xfree()

void remote_notif_state_xfree ( struct remote_notif_state state)

Variable Documentation

◆ notif_debug

int notif_debug = 0

◆ notifs

struct notif_client* notifs[]
static
Initial value:
=
{
}
struct notif_client notif_client_stop
Definition: remote.c:6381

Definition at line 48 of file remote-notif.c.

Referenced by handle_notification().