32 debug_agent_printf (
const char *fmt, ...)
43 #define DEBUG_AGENT debug_agent_printf
117 warning (
_(
"Error reading helper thread's id in lib"));
124 #include <sys/socket.h>
126 #define SOCK_DIR P_tmpdir
128 #ifndef UNIX_PATH_MAX
129 #define UNIX_PATH_MAX sizeof(((struct sockaddr_un *) NULL)->sun_path)
141 struct sockaddr_un addr;
152 warning (
_(
"error opening sync socket: %s"), strerror (errno));
156 addr.sun_family = AF_UNIX;
161 warning (
_(
"string overflow allocating socket name"));
166 res = connect (fd, (
struct sockaddr *) &addr,
sizeof (addr));
169 warning (
_(
"error connecting sync socket (%s): %s. "
170 "Make sure the directory exists and that it is writable."),
171 path, strerror (errno));
219 ret = write (fd, buf, 1);
220 }
while (ret == -1 && errno == EINTR);
222 DEBUG_AGENT (
"agent: waiting for helper thread's response\n");
226 ret =
read (fd, buf, 1);
227 }
while (ret == -1 && errno == EINTR);
231 DEBUG_AGENT (
"agent: helper thread's response received\n");
249 warning (
_(
"Error reading command response"));
269 warning (
_(
"Error reading capability of agent"));
ssize_t read(int fd, void *buf, size_t count)
static struct @39 symbol_list[]
static unsigned int agent_get_helper_thread_id(void)
int find_minimal_symbol_address(const char *name, CORE_ADDR *addr, struct objfile *objfile)
int ptid_equal(ptid_t ptid1, ptid_t ptid2)
int target_write_memory(CORE_ADDR memaddr, const gdb_byte *myaddr, ssize_t len)
void warning(const char *fmt,...)
struct type ** const(pascal_builtin_types[])
int gdb_socket_cloexec(int domain, int style, int protocol)
ptid_t ptid_build(int pid, long lwp, long tid)
static int all_agent_symbols_looked_up
int target_read_uint32(CORE_ADDR memaddr, uint32_t *result)
int agent_run_command(int pid, const char *cmd, int len)
void target_stop_and_wait(ptid_t ptid)
void agent_capability_invalidate(void)
static int gdb_connect_sync_socket(int pid)
void void debug_vprintf(const char *format, va_list ap) ATTRIBUTE_PRINTF(1
int xsnprintf(char *str, size_t size, const char *format,...)
int target_read_memory(CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
static struct ipa_sym_addresses ipa_sym_addrs
int agent_capability_check(enum agent_capa agent_capa)
CORE_ADDR addr_capability
static void ATTRIBUTE_PRINTF(1, 2)
static uint32_t agent_capability
CORE_ADDR addr_helper_thread_id
mach_port_t mach_port_t name mach_port_t mach_port_t name error_t int int rusage_t pid_t pid
void target_continue_no_signal(ptid_t ptid)
int agent_look_up_symbols(void *arg)
const ULONGEST const LONGEST len
static uint32_t helper_thread_id