GDBserver
Classes | Defines | Functions | Variables
/home/stan/gdb/src/gdb/common/agent.c File Reference
#include "defs.h"
#include "target.h"
#include "inferior.h"
#include <string.h>
#include <unistd.h>
#include "agent.h"
#include "filestuff.h"

Go to the source code of this file.

Classes

struct  ipa_sym_addresses

Defines

#define DEBUG_AGENT(fmt, args...)

Functions

int agent_loaded_p (void)
int agent_look_up_symbols (void *arg)
static unsigned int agent_get_helper_thread_id (void)
static int gdb_connect_sync_socket (int pid)
int agent_run_command (int pid, const char *cmd, int len)
int agent_capability_check (enum agent_capa agent_capa)
void agent_capability_invalidate (void)

Variables

int debug_agent = 0
int use_agent = 0
static unsigned int helper_thread_id = 0
struct {
   const char *   name
   int   offset
   int   required
symbol_list []
static struct ipa_sym_addresses ipa_sym_addrs
static int all_agent_symbols_looked_up = 0
static unsigned int agent_capability = 0

Define Documentation

#define DEBUG_AGENT (   fmt,
  args... 
)
Value:
if (debug_agent)                        \
    fprintf_unfiltered (gdb_stdlog, fmt, ##args);

Definition at line 40 of file agent.c.

Referenced by agent_look_up_symbols(), and agent_run_command().


Function Documentation

void agent_capability_invalidate ( void  )

Definition at line 355 of file agent.c.

References agent_capability.

static unsigned int agent_get_helper_thread_id ( void  ) [static]
int agent_loaded_p ( void  )
int agent_look_up_symbols ( void *  arg)
int agent_run_command ( int  pid,
const char *  cmd,
int  len 
)
static int gdb_connect_sync_socket ( int  pid) [static]

Definition at line 161 of file agent.c.

References _, errno, gdb_socket_cloexec(), strerror, warning(), and xsnprintf().

Referenced by agent_run_command().


Variable Documentation

unsigned int agent_capability = 0 [static]

Definition at line 323 of file agent.c.

Referenced by agent_capability_check(), and agent_capability_invalidate().

int all_agent_symbols_looked_up = 0 [static]

Definition at line 75 of file agent.c.

Referenced by agent_loaded_p(), and agent_look_up_symbols().

int debug_agent = 0

Definition at line 33 of file agent.c.

unsigned int helper_thread_id = 0 [static]

Definition at line 60 of file agent.c.

Referenced by agent_get_helper_thread_id().

const char* name

Definition at line 64 of file agent.c.

int offset

Definition at line 65 of file agent.c.

int required

Definition at line 66 of file agent.c.

struct { ... } symbol_list[] [static]

Referenced by agent_look_up_symbols().

int use_agent = 0

Definition at line 46 of file agent.c.

Referenced by cmd_qtdp(), cmd_qtstart(), and handle_general_set().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines