GDBserver
|
Go to the source code of this file.
Macros | |
#define | skip_to_space(INP) ((char *) skip_to_space_const (INP)) |
Functions | |
void * | xzalloc (size_t) |
void | xfree (void *) |
char * | xstrprintf (const char *format,...) ATTRIBUTE_PRINTF(1 |
char char * | xstrvprintf (const char *format, va_list ap) ATTRIBUTE_PRINTF(1 |
char char int | xsnprintf (char *str, size_t size, const char *format,...) ATTRIBUTE_PRINTF(3 |
char char int char * | savestring (const char *ptr, size_t len) |
char * | safe_strerror (int) |
static int | startswith (const char *string, const char *pattern) |
ULONGEST | strtoulst (const char *num, const char **trailer, int base) |
char * | skip_spaces (char *inp) |
const char * | skip_spaces_const (const char *inp) |
const char * | skip_to_space_const (const char *inp) |
#define skip_to_space | ( | INP | ) | ((char *) skip_to_space_const (INP)) |
Definition at line 94 of file common-utils.h.
char* safe_strerror | ( | int | ) |
Definition at line 32 of file mingw-strerror.c.
References strerror(), and xsnprintf().
Referenced by linux_ptrace_attach_fail_reason_string(), linux_ptrace_test_ret_to_nx(), and maybe_disable_address_space_randomization().
char char int char* savestring | ( | const char * | ptr, |
size_t | len | ||
) |
Definition at line 148 of file common-utils.c.
References xmalloc().
Referenced by add_tracepoint_action().
char* skip_spaces | ( | char * | inp | ) |
Definition at line 259 of file common-utils.c.
const char* skip_spaces_const | ( | const char * | inp | ) |
Definition at line 271 of file common-utils.c.
const char* skip_to_space_const | ( | const char * | inp | ) |
Definition at line 283 of file common-utils.c.
|
inlinestatic |
Definition at line 75 of file common-utils.h.
Referenced by captured_main(), cmd_qtframe(), cmd_qtnotes(), cmd_qtstatus(), handle_btrace_conf_general_set(), handle_btrace_general_set(), handle_general_set(), handle_monitor_command(), handle_notif_ack(), handle_output_debug_string(), handle_query(), handle_qxfer(), handle_tracepoint_general_set(), handle_tracepoint_query(), handle_v_requests(), handle_vFile(), hex_or_minus_one(), linux_proc_pid_get_state(), linux_qxfer_libraries_svr4(), look_up_one_symbol(), process_point_options(), relocate_instruction(), tracepoint_send_agent(), and x86_linux_process_qsupported().
ULONGEST strtoulst | ( | const char * | num, |
const char ** | trailer, | ||
int | base | ||
) |
Definition at line 188 of file common-utils.c.
References digit_to_int(), errno, HIGH_BYTE_POSN, and is_digit_in_base().
void xfree | ( | void * | ) |
Definition at line 97 of file common-utils.c.
Referenced by agent_mem_read_string(), ATTRIBUTE_PRINTF(), btrace_data_append(), btrace_data_fini(), buffer_free(), buffer_xml_printf(), catcher_pop(), cmd_qtnotes(), command_from_pid(), commandline_from_pid(), discard_my_cleanups(), do_my_cleanups(), free_char_ptr_vec(), free_format_pieces(), gdb_event_xfree(), handle_monitor_command(), handle_notif_ack(), linux_common_core_of_thread(), linux_grandchild_function(), linux_ptrace_attach_fail_reason_string(), linux_qxfer_libraries_svr4(), linux_wait_1(), linux_xfer_osdata_fds(), linux_xfer_osdata_processes(), linux_xfer_osdata_processgroups(), linux_xfer_osdata_threads(), make_cleanup_close(), notif_event_xfree(), pull_pid_from_list(), queue_stop_reply_callback(), and remove_tracepoint().
char char int xsnprintf | ( | char * | str, |
size_t | size, | ||
const char * | format, | ||
... | |||
) |
char* xstrprintf | ( | const char * | format, |
... | |||
) |
char char* xstrvprintf | ( | const char * | format, |
va_list | ap | ||
) |
void* xzalloc | ( | size_t | ) |
Definition at line 91 of file common-utils.c.
References xcalloc().