GDBserver
|
#include "common-defs.h"
#include "target/target.h"
#include "common/symbol.h"
#include <unistd.h>
#include "agent.h"
#include "filestuff.h"
Go to the source code of this file.
Classes | |
struct | ipa_sym_addresses |
Macros | |
#define | DEBUG_AGENT debug_agent_printf |
Functions | |
static void | ATTRIBUTE_PRINTF (1, 2) |
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 uint32_t | 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 uint32_t | agent_capability = 0 |
#define DEBUG_AGENT debug_agent_printf |
Definition at line 43 of file agent.c.
Referenced by agent_look_up_symbols(), and agent_run_command().
int agent_capability_check | ( | enum agent_capa agent_capa | ) |
Definition at line 263 of file agent.c.
References _, ipa_sym_addresses::addr_capability, agent_capability, ipa_sym_addrs, target_read_uint32(), and warning().
Referenced by cmd_qtdp(), cmd_qtstart(), and in_process_agent_supports_ust().
void agent_capability_invalidate | ( | void | ) |
Definition at line 278 of file agent.c.
References agent_capability.
|
static |
Definition at line 111 of file agent.c.
References _, ipa_sym_addresses::addr_helper_thread_id, helper_thread_id, ipa_sym_addrs, target_read_uint32(), and warning().
Referenced by agent_run_command().
int agent_loaded_p | ( | void | ) |
Definition at line 78 of file agent.c.
References all_agent_symbols_looked_up.
Referenced by cmd_qtstart(), cmd_qtstatus(), handle_tracepoint_bkpts(), in_process_agent_supports_ust(), install_tracepoint(), linux_wait_1(), maybe_move_out_of_jump_pad(), maybe_write_ipa_not_loaded(), maybe_write_ipa_ust_not_loaded(), stop_tracing(), stuck_in_jump_pad_callback(), tracepoint_finished_step(), tracepoint_look_up_symbols(), and x86_get_min_fast_tracepoint_insn_len().
int agent_look_up_symbols | ( | void * | arg | ) |
Definition at line 87 of file agent.c.
References all_agent_symbols_looked_up, DEBUG_AGENT, find_minimal_symbol_address(), ipa_sym_addrs, name, and symbol_list.
Referenced by tracepoint_look_up_symbols().
int agent_run_command | ( | int | pid, |
const char * | cmd, | ||
int | len | ||
) |
Definition at line 189 of file agent.c.
References _, ipa_sym_addresses::addr_cmd_buf, agent_get_helper_thread_id(), DEBUG_AGENT, errno, gdb_connect_sync_socket(), IPA_CMD_BUF_SIZE, ipa_sym_addrs, null_ptid, ptid_build(), ptid_equal(), target_continue_no_signal(), target_read_memory(), target_stop_and_wait(), target_write_memory(), and warning().
Referenced by run_inferior_command().
|
static |
Definition at line 31 of file agent.c.
References debug_agent, and debug_vprintf().
|
static |
Definition at line 138 of file agent.c.
References _, errno, gdb_socket_cloexec(), strerror(), warning(), and xsnprintf().
Referenced by agent_run_command().
|
static |
Definition at line 258 of file agent.c.
Referenced by agent_capability_check(), and agent_capability_invalidate().
|
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 27 of file agent.c.
Referenced by ATTRIBUTE_PRINTF().
|
static |
Definition at line 60 of file agent.c.
Referenced by agent_get_helper_thread_id().
|
static |
Definition at line 73 of file agent.c.
Referenced by agent_capability_check(), agent_get_helper_thread_id(), agent_look_up_symbols(), and agent_run_command().
const char* name |
Definition at line 64 of file agent.c.
Referenced by agent_look_up_symbols().
struct { ... } symbol_list[] |
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().