GDBserver

Macros | Functions
utils.c File Reference
`#include "server.h"`

Go to the source code of this file.

## Macros
#define | PREFIX "gdbserver: "
#define | TOOLNAME "GDBserver"

## Functions
void | malloc_failure (long size)
char * | xstrdup (const char *s)
void | perror_with_name (const char *string)
void | verror (const char *string, va_list args)
void | vwarning (const char *string, va_list args)
void | internal_verror (const char *file, int line, const char *fmt, va_list args)
void | internal_vwarning (const char *file, int line, const char *fmt, va_list args)
char * | paddress (CORE_ADDR addr)
char * | pfildes (gdb_fildes_t fd)

## Macro Definition Documentation

## ◆ PREFIX

#define PREFIX "gdbserver: "

Definition at line 25 of file utils.c.

Referenced by malloc_failure(), and vwarning().

## ◆ TOOLNAME

#define TOOLNAME "GDBserver"

Definition at line 26 of file utils.c.

Referenced by internal_verror(), and internal_vwarning().

## Function Documentation

## ◆ internal_verror()

void internal_verror | ( | const char * | file,
|  | int | line,
|  | const char * | fmt,
|  | va_list | args
| ) |  |

Definition at line 100 of file utils.c.

References TOOLNAME.

Referenced by internal_error().

## ◆ internal_vwarning()

void internal_vwarning | ( | const char * | file,
|  | int | line,
|  | const char * | fmt,
|  | va_list | args
| ) |  |

Definition at line 112 of file utils.c.

References TOOLNAME.

Referenced by internal_warning().

## ◆ malloc_failure()

void malloc_failure | ( | long | size | ) |

Definition at line 32 of file utils.c.

References PREFIX.

Referenced by operator new(), xcalloc(), xmalloc(), xmalloc_failed(), xrealloc(), and xstrdup().

## ◆ paddress()

char* paddress | ( | CORE_ADDR | addr | ) |

Definition at line 124 of file utils.c.

References phex_nz().

Referenced by add_insns(), add_tracepoint_action(), build_traceframe_info_xml(), 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(), emit_ops_insns(), fast_tracepoint_collecting(), gdb_no_commands_at_breakpoint_z_type(), handle_query(), handle_tracepoint_bkpts(), insert_memory_breakpoint(), linux_resume_one_lwp_throw(), 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(), remove_memory_breakpoint(), response_action(), response_source(), response_tracepoint(), resume_stopped_resumed_lwps(), 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().

## ◆ perror_with_name()

void perror_with_name | ( | const char * | string | ) |

Definition at line 57 of file utils.c.

References alloca(), errno, error(), and strerror().

Referenced by aarch64_point_encode_ctrl_reg(), alloc_jump_pad_buffer(), arm_prepare_to_resume(), fetch_ppc_register(), fork_inferior(), handle_accept_event(), handle_extended_wait(), initialize_tracepoint(), kill_lwp(), kill_wait_lwp(), linux_check_ptrace_features(), linux_fork_to_function(), linux_ns_same(), linux_resume_one_lwp_throw(), lynx_add_threads_after_attach(), lynx_resume(), lynx_waitpid(), mips_linux_prepare_to_resume(), mips_read_description(), ppc_collect_ptrace_register(), ppc_supply_ptrace_register(), remote_open(), remote_prepare(), restore_original_signals_state(), save_original_signals_state(), spu_resume(), spu_wait(), wait_for_event(), x86_linux_dr_get(), and x86_linux_dr_set().

## ◆ pfildes()

char* pfildes | ( | gdb_fildes_t | fd | ) |

Definition at line 132 of file utils.c.

References phex_nz(), and plongest().

Referenced by handle_file_event().

## ◆ verror()

void verror | ( | const char * | string,
|  | va_list | args
| ) |  |

Definition at line 77 of file utils.c.

References GENERIC_ERROR, and throw_verror().

Referenced by error().

## ◆ vwarning()

void vwarning | ( | const char * | string,
|  | va_list | args
| ) |  |

Definition at line 90 of file utils.c.

References PREFIX.

Referenced by trace_start_error(), and warning().

## ◆ xstrdup()

char* xstrdup | ( | const char * | s | ) |

Definition at line 44 of file utils.c.

References malloc_failure().

Referenced by captured_main(), gdb_environ::from_host_environ(), handle_extended_wait(), handle_general_set(), handle_query(), handle_v_run(), look_up_one_symbol(), set_inferior_cwd(), set_tdesc_architecture(), set_tdesc_osabi(), tdesc_create_feature(), tdesc_get_features_xml(), thread_db_handle_monitor_command(), thread_db_load_search(), and x86_linux_process_qsupported().