GDBserver
|
Go to the source code of this file.
Defines | |
#define | PREFIX "gdbserver: " |
#define | TOOLNAME "GDBserver" |
#define | NUMCELLS 10 |
#define | CELLSIZE 50 |
Functions | |
void | malloc_failure (long size) |
char * | xstrdup (const char *s) |
void | freeargv (char **vector) |
void | perror_with_name (const char *string) |
void | error (const char *string,...) |
void | fatal (const char *string,...) |
void | warning (const char *string,...) |
void | internal_error (const char *file, int line, const char *fmt,...) |
static char * | get_cell (void) |
static char * | decimal2str (char *sign, ULONGEST addr) |
char * | pulongest (ULONGEST u) |
char * | plongest (LONGEST l) |
char * | phex_nz (ULONGEST l, int sizeof_l) |
char * | paddress (CORE_ADDR addr) |
char * | pfildes (gdb_fildes_t fd) |
Variables | |
static int | thirty_two = 32 |
#define CELLSIZE 50 |
Definition at line 170 of file utils.c.
Referenced by decimal2str(), get_cell(), and phex_nz().
#define NUMCELLS 10 |
Definition at line 169 of file utils.c.
Referenced by get_cell().
#define PREFIX "gdbserver: " |
Definition at line 31 of file utils.c.
Referenced by fatal(), malloc_failure(), and warning().
#define TOOLNAME "GDBserver" |
Definition at line 32 of file utils.c.
Referenced by internal_error().
static char* decimal2str | ( | char * | sign, |
ULONGEST | addr | ||
) | [static] |
Definition at line 185 of file utils.c.
References CELLSIZE, get_cell(), internal_error(), and xsnprintf().
Referenced by plongest(), and pulongest().
void error | ( | const char * | string, |
... | |||
) |
Definition at line 106 of file utils.c.
References toplevel.
Referenced by aarch64_linux_set_debug_regs(), attach_thread(), ax_printf(), cmd_qtstart(), find_new_threads_callback(), find_one_thread(), fromhex(), gdb_eval_agent_expr(), gdb_signal_from_host(), handle_search_memory(), hostio_last_error_from_errno(), i386_get_thread_context(), i386_length_and_rw_bits(), linux_attach_lwp_1(), linux_check_ptrace_features(), linux_detach_one_lwp(), linux_wait_for_event(), lynx_attach(), main(), nto_attach(), parse_format_string(), perror_with_name(), prepare_resume_reply(), psapi_get_dll_name(), read_ptid(), reinsert_fast_tracepoint_jumps_at(), reinsert_raw_breakpoint(), remote_open(), remote_unescape_input(), set_raw_breakpoint_at(), thread_db_find_new_threads(), tic6x_read_description(), tile_arch_setup(), upload_fast_traceframes(), win32_attach(), win32_create_inferior(), win32_resume(), x86_linux_dr_get(), x86_linux_dr_set(), and x86_linux_read_description().
void fatal | ( | const char * | string, |
... | |||
) |
Definition at line 129 of file utils.c.
References PREFIX.
Referenced by claim_trampoline_space(), cmd_qtstart(), current_process(), download_trace_state_variables(), download_tracepoint(), fast_tracepoint_collecting(), find_register_by_name(), find_regno(), get_jump_space_head(), get_thread_regcache(), have_fast_tracepoint_trampoline_buffer(), i386_dr_low_set_addr(), i386_handle_nonaligned_watchpoint(), i386_length_and_rw_bits(), init_register_cache(), init_target_desc(), initialize_tracepoint(), linux_async(), linux_resume_one_lwp(), linux_wait_for_event(), remote_prepare(), stop_tracing(), target_malloc(), thread_db_create_event(), try_thread_db_load_1(), upload_fast_traceframes(), x86_siginfo_fixup(), and Z_packet_to_hw_type().
void freeargv | ( | char ** | vector | ) |
Definition at line 63 of file utils.c.
Referenced by handle_v_run().
static char* get_cell | ( | void | ) | [static] |
void internal_error | ( | const char * | file, |
int | line, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 155 of file utils.c.
References TOOLNAME.
Referenced by arm_linux_init_hwbp_cap(), decimal2str(), gdb_eval_agent_expr(), get_reg_mask(), install_tracepoint(), mips_linux_watch_get_irw_mask(), mips_linux_watch_get_num_valid(), mips_linux_watch_get_watchhi(), mips_linux_watch_get_watchlo(), mips_linux_watch_set_watchhi(), mips_linux_watch_set_watchlo(), regcache_read_pc(), regcache_write_pc(), and xstrvprintf().
void malloc_failure | ( | long | size | ) |
Definition at line 289 of file utils.c.
References phex_nz().
Referenced by aarch64_handle_unaligned_watchpoint(), aarch64_show_debug_reg_state(), add_insns(), add_tracepoint_action(), build_traceframe_info_xml(), cancel_breakpoint(), claim_jump_space(), claim_trampoline_space(), clear_installed_tracepoints(), cmd_qtdp(), cmd_qtdpsrc(), cmd_qtenable_disable(), cmd_qtframe(), cmd_qtp(), cmd_qtro(), collect_data_at_step(), collect_data_at_tracepoint(), compile_bytecodes(), condition_true_at_tracepoint(), delete_fast_tracepoint_jump(), delete_raw_breakpoint(), do_action_at_tracepoint(), fast_tracepoint_collecting(), gdb_no_commands_at_breakpoint(), handle_query(), handle_tracepoint_bkpts(), i386_show_dr(), linux_resume_one_lwp(), linux_wait_1(), need_step_over_p(), probe_marker_at(), record_tracepoint_error(), reinsert_breakpoints_at(), reinsert_fast_tracepoint_jumps_at(), reinsert_raw_breakpoint(), relocate_instruction(), response_action(), response_source(), response_tracepoint(), set_fast_tracepoint_jump(), set_raw_breakpoint_at(), traceframe_read_mem(), tracepoint_finished_step(), tracepoint_handler(), tracepoint_was_hit(), uninsert_breakpoints_at(), uninsert_fast_tracepoint_jumps_at(), uninsert_raw_breakpoint(), unprobe_marker_at(), and upload_fast_traceframes().
void perror_with_name | ( | const char * | string | ) |
Definition at line 84 of file utils.c.
References errno, error(), and strerror.
Referenced by arm_prepare_to_resume(), fetch_ppc_register(), handle_accept_event(), handle_extended_wait(), linux_check_ptrace_features(), linux_create_inferior(), linux_fork_to_function(), linux_resume_one_lwp(), linux_wait_for_lwp(), lynx_add_threads_after_attach(), lynx_create_inferior(), lynx_resume(), lynx_waitpid(), mips_linux_prepare_to_resume(), mips_read_description(), remote_open(), remote_prepare(), spu_create_inferior(), spu_resume(), spu_wait(), and wait_for_event().
char* pfildes | ( | gdb_fildes_t | fd | ) |
Definition at line 297 of file utils.c.
References phex_nz(), and plongest().
Referenced by handle_file_event().
Definition at line 251 of file utils.c.
References CELLSIZE, get_cell(), phex_nz(), thirty_two, and xsnprintf().
Referenced by build_traceframe_info_xml(), cmd_qtbuffer(), cmd_qtstatus(), cmd_qtv(), gdb_eval_agent_expr(), gdb_no_commands_at_breakpoint(), handle_exception(), paddress(), pfildes(), phex_nz(), and response_tsv().
Definition at line 236 of file utils.c.
References decimal2str().
Referenced by cmd_bigqtbuffer_size(), get_trace_state_variable_value(), and pfildes().
Definition at line 227 of file utils.c.
References decimal2str().
Referenced by add_tracepoint_action(), claim_jump_space(), claim_trampoline_space(), condition_true_at_tracepoint(), do_action_at_tracepoint(), and gdb_eval_agent_expr().
void warning | ( | const char * | string, |
... | |||
) |
Definition at line 142 of file utils.c.
References PREFIX.
Referenced by aarch64_arch_setup(), agent_capability_check(), agent_get_helper_thread_id(), agent_run_command(), attach_thread(), build_traceframe_info_xml(), check_breakpoints(), delete_breakpoint_1(), delete_fast_tracepoint_jump(), delete_raw_breakpoint(), fast_tracepoint_collecting(), find_one_thread(), gdb_connect_sync_socket(), gdb_signal_to_host(), get_phdr_phnum_from_proc_auxv(), handle_extended_wait(), handle_search_memory_1(), in_process_agent_supports_ust(), linux_check_ptrace_features(), linux_create_inferior(), linux_proc_get_int(), linux_proc_pid_has_state(), linux_ptrace_test_ret_to_nx(), linux_qxfer_libraries_svr4(), linux_test_for_tracefork(), look_up_one_symbol(), registers_from_string(), relocate_instruction(), thread_db_enable_reporting(), try_thread_db_load_from_dir(), and x86_get_min_fast_tracepoint_insn_len().
char* xstrdup | ( | const char * | s | ) |
Definition at line 50 of file utils.c.
References malloc_failure().
Referenced by handle_query(), loaded_dll(), look_up_one_symbol(), main(), thread_db_handle_monitor_command(), thread_db_load_search(), and x86_linux_process_qsupported().
int thirty_two = 32 [static] |