GDB (xrefs)
Loading...
Searching...
No Matches
Macros | Typedefs | Enumerations | Functions | Variables
defs.h File Reference
#include "gdbsupport/common-defs.h"
#include <config.h>
#include "bfd.h"
#include <sys/types.h>
#include <climits>
#include <unistd.h>
#include <fcntl.h>
#include "gdb_wchar.h"
#include "ui-file.h"
#include "gdbsupport/host-defs.h"
#include "gdbsupport/enum-flags.h"
#include "gdbsupport/array-view.h"
#include "hashtab.h"
#include "fopen-bin.h"
#include "utils.h"

Go to the source code of this file.

Macros

#define GCC_GENERATED_STDINT_H   1
 
#define SEEK_SET   0
 
#define SEEK_CUR   1
 
#define O_BINARY   0
 
#define QUIT   maybe_quit ()
 
#define LANGUAGE_BITS   5
 
#define LANGUAGE_BYTES   ((LANGUAGE_BITS + HOST_CHAR_BIT - 1) / HOST_CHAR_BIT)
 
#define ISATTY(FP)   (isatty (fileno (FP)))
 
#define GDB_MI_MSG_WIDTH   80
 

Typedefs

template<typename T >
using RequireLongest
 
typedef void quit_handler_ftype(void)
 
typedef void initialize_file_ftype(void)
 
typedef int(* find_memory_region_ftype) (CORE_ADDR addr, unsigned long size, int read, int write, int exec, int modified, bool memory_tagged, void *data)
 

Enumerations

enum  compile_i_scope_types {
  COMPILE_I_INVALID_SCOPE , COMPILE_I_SIMPLE_SCOPE , COMPILE_I_RAW_SCOPE , COMPILE_I_PRINT_ADDRESS_SCOPE ,
  COMPILE_I_PRINT_VALUE_SCOPE
}
 
enum  language {
  language_unknown , language_c , language_objc , language_rust ,
  language_cplus , language_d , language_go , language_fortran ,
  language_m2 , language_asm , language_pascal , language_opencl ,
  language_minimal , language_ada , nr_languages
}
 
enum  precision_type { single_precision , double_precision , unspecified_precision }
 
enum  auto_boolean { AUTO_BOOLEAN_TRUE , AUTO_BOOLEAN_FALSE , AUTO_BOOLEAN_AUTO }
 
enum  return_value_convention { RETURN_VALUE_REGISTER_CONVENTION , RETURN_VALUE_STRUCT_CONVENTION , RETURN_VALUE_ABI_RETURNS_ADDRESS , RETURN_VALUE_ABI_PRESERVES_ADDRESS }
 
enum  lval_type {
  not_lval , lval_memory , lval_register , lval_internalvar ,
  lval_xcallable , lval_internalvar_component , lval_computed
}
 
enum  info_proc_what {
  IP_MINIMAL , IP_MAPPINGS , IP_STATUS , IP_STAT ,
  IP_CMDLINE , IP_EXE , IP_CWD , IP_FILES ,
  IP_ALL
}
 
enum  symbol_needs_kind { SYMBOL_NEEDS_NONE , SYMBOL_NEEDS_REGISTERS , SYMBOL_NEEDS_FRAME }
 
enum  block_enum { GLOBAL_BLOCK = 0 , STATIC_BLOCK = 1 , FIRST_LOCAL_BLOCK = 2 }
 
enum  user_selected_what_flag { USER_SELECTED_INFERIOR = 1 << 1 , USER_SELECTED_THREAD = 1 << 2 , USER_SELECTED_FRAME = 1 << 3 }
 

Functions

int check_quit_flag (void)
 
void set_quit_flag (void)
 
void default_quit_handler (void)
 
void set_force_quit_flag ()
 
void quit (void)
 
void maybe_quit (void)
 
void quit_serial_event_set (void)
 
void quit_serial_event_clear (void)
 
 gdb_static_assert (nr_languages<=(1<< LANGUAGE_BITS))
 
std::string relocate_gdb_directory (const char *initial, bool relocatable)
 
EXTERN_C char * re_comp (const char *)
 
void symbol_file_command (const char *, int)
 
char * gdb_readline_wrapper (const char *)
 
const char * command_line_input (std::string &cmd_line_buffer, const char *, const char *)
 
void print_prompt (void)
 
void set_next_address (struct gdbarch *, CORE_ADDR)
 
int print_address_symbolic (struct gdbarch *, CORE_ADDR, struct ui_file *, int, const char *)
 
void print_address (struct gdbarch *, CORE_ADDR, struct ui_file *)
 
const char * pc_prefix (CORE_ADDR)
 
int longest_to_int (LONGEST)
 
template<typename T , typename = RequireLongest<T>>
T extract_integer (gdb::array_view< const gdb_byte >, enum bfd_endian byte_order)
 
static LONGEST extract_signed_integer (gdb::array_view< const gdb_byte > buf, enum bfd_endian byte_order)
 
static LONGEST extract_signed_integer (const gdb_byte *addr, int len, enum bfd_endian byte_order)
 
static ULONGEST extract_unsigned_integer (gdb::array_view< const gdb_byte > buf, enum bfd_endian byte_order)
 
static ULONGEST extract_unsigned_integer (const gdb_byte *addr, int len, enum bfd_endian byte_order)
 
int extract_long_unsigned_integer (const gdb_byte *, int, enum bfd_endian, LONGEST *)
 
CORE_ADDR extract_typed_address (const gdb_byte *buf, struct type *type)
 
template<typename T , typename = RequireLongest<T>>
void store_integer (gdb_byte *addr, int len, enum bfd_endian byte_order, T val)
 
static void store_signed_integer (gdb_byte *addr, int len, enum bfd_endian byte_order, LONGEST val)
 
static void store_unsigned_integer (gdb_byte *addr, int len, enum bfd_endian byte_order, ULONGEST val)
 
void store_typed_address (gdb_byte *buf, struct type *type, CORE_ADDR addr)
 
void copy_integer_to_size (gdb_byte *dest, int dest_size, const gdb_byte *source, int source_size, bool is_signed, enum bfd_endian byte_order)
 
void initialize_progspace (void)
 
void initialize_inferiors (void)
 
 DEF_ENUM_FLAGS_TYPE (enum user_selected_what_flag, user_selected_what)
 

Variables

std::string gdb_sysroot
 
std::string gdb_datadir
 
std::string python_libdir
 
std::string debug_file_directory
 
quit_handler_ftypequit_handler
 
volatile bool sync_quit_force_run
 
int annotation_level
 
bool info_verbose
 
unsigned input_radix
 
unsigned output_radix
 
void(* deprecated_pre_add_symbol_hook )(const char *)
 
void(* deprecated_post_add_symbol_hook )(void)
 
void(* selected_frame_level_changed_hook )(int)
 
int(* deprecated_ui_loop_hook )(int signo)
 
void(* deprecated_show_load_progress )(const char *section, unsigned long section_sent, unsigned long section_size, unsigned long total_sent, unsigned long total_size)
 
void(* deprecated_print_frame_info_listing_hook )(struct symtab *s, int line, int stopline, int noerror)
 
int(* deprecated_query_hook )(const char *, va_list) ATTRIBUTE_FPTR_PRINTF(1
 
int void(* deprecated_warning_hook )(const char *, va_list) ATTRIBUTE_FPTR_PRINTF(1
 
int void void(* deprecated_readline_begin_hook )(const char *,...) ATTRIBUTE_FPTR_PRINTF_1
 
char *(* deprecated_readline_hook )(const char *)
 
void(* deprecated_readline_end_hook )(void)
 
void(* deprecated_context_hook )(int)
 
ptid_t(* deprecated_target_wait_hook )(ptid_t ptid, struct target_waitstatus *status, int options)
 
void(* deprecated_attach_hook )(void)
 
void(* deprecated_detach_hook )(void)
 
void(* deprecated_call_command_hook )(struct cmd_list_element *c, const char *cmd, int from_tty)
 
int(* deprecated_ui_load_progress_hook )(const char *section, unsigned long num)
 

Macro Definition Documentation

◆ GCC_GENERATED_STDINT_H

#define GCC_GENERATED_STDINT_H   1

Definition at line 52 of file defs.h.

◆ GDB_MI_MSG_WIDTH

#define GDB_MI_MSG_WIDTH   80

A width that can achieve a better legibility for GDB MI mode.

Definition at line 574 of file defs.h.

Referenced by ser_base_read_error_fd().

◆ ISATTY

#define ISATTY ( FP)    (isatty (fileno (FP)))

Definition at line 570 of file defs.h.

Referenced by gdb_setup_readline(), and unbuffer_stream().

◆ LANGUAGE_BITS

#define LANGUAGE_BITS   5

Definition at line 231 of file defs.h.

◆ LANGUAGE_BYTES

#define LANGUAGE_BYTES   ((LANGUAGE_BITS + HOST_CHAR_BIT - 1) / HOST_CHAR_BIT)

Definition at line 235 of file defs.h.

◆ O_BINARY

#define O_BINARY   0

◆ QUIT

#define QUIT   maybe_quit ()

Definition at line 187 of file defs.h.

Referenced by collection_list::add_ax_registers(), global_symbol_searcher::add_matching_msymbols(), global_symbol_searcher::add_matching_symbols(), add_symbol_overload_list_qualified(), add_symtab_completions(), addrmap_dump(), adi_print_versions(), amd64_windows_frame_decode_epilogue(), amd64_windows_frame_decode_insns(), async_request_quit(), backtrace_command_1(), breakpoint_1(), c_type_print_base_1(), c_type_print_base_struct_union(), c_type_print_varspec_prefix(), c_type_print_varspec_suffix(), coff_symtab_read(), ada_language::collect_symbol_completion_matches(), common_val_print(), cp_find_class_member(), default_collect_symbol_completion_matches_break_on(), do_examine(), dos_readchar(), dos_write(), remote_target::download_tracepoint(), cooked_index::dump(), dump_insns(), dw_expand_symtabs_matching_file_matcher(), dwarf2_get_symbol_read_needs(), encode_actions_1(), execute_control_command_1(), dwarf_expr_context::execute_stack_op(), cooked_index_functions::expand_matching_symbols(), psymbol_functions::expand_matching_symbols(), global_symbol_searcher::expand_symtabs(), dwarf2_debug_names_index::expand_symtabs_matching(), dwarf2_gdb_index::expand_symtabs_matching(), cooked_index_functions::expand_symtabs_matching(), psymbol_functions::expand_symtabs_matching(), f_language::f_type_print_base(), f_language::f_type_print_varspec_prefix(), f_language::f_type_print_varspec_suffix(), find_methods(), frame_apply_command_count(), frame_follow_static_link(), gdb_readline_no_editing(), generic_printstr(), generic_val_print_enum_1(), get_hosting_frame(), info_classes_command(), info_scope_command(), info_selectors_command(), info_signals_command(), info_skip_command(), leading_innermost_frame(), m2_enum(), m2_print_type(), m2_record_fields(), maintenance_check_symtabs(), maintenance_info_line_tables(), maintenance_info_psymtabs(), maintenance_info_symtabs(), maintenance_print_msymbols(), maintenance_print_objfiles(), maintenance_print_psymbols(), maintenance_print_symbols(), psymbol_functions::map_symbol_filenames(), mi_cmd_stack_info_depth(), mi_cmd_stack_list_args(), mi_cmd_stack_list_frames(), need_access_label_p(), print_enum_type(), print_frame_args(), print_frame_nameless_args(), print_object_command(), print_objfile_statistics(), print_partial_symbols(), print_selected_record_field_types(), printf_c_string(), printf_wide_c_string(), m2_language::printstr(), pascal_language::printstr(), printstr(), remote_target::rcmd(), target_fileio_stream::read(), read_dbx_symtab(), read_memory_object(), read_memory_robust(), read_ofile_symtab(), read_value_memory(), read_xcoff_symtab(), recursively_search_psymtabs(), remote_target::remote_download_command_source(), remote_target::remote_get_noisy_reply(), rust_internal_print_type(), rust_print_struct_def(), scan_file_globals(), scan_xcoff_symtab(), search_module_symbols(), ser_base_wait_for(), ser_base_write(), simple_verify_memory(), remote_target::start_remote_1(), stdin_event_handler(), collection_list::stringify(), symbol_cache_dump(), symbol_cache_stats(), symtab_symbol_info(), target_fileio_read_alloc_1(), target_read(), target_read_alloc_1(), target_write_with_progress(), trace_dump_actions(), trailing_outermost_frame(), pascal_language::type_print_base(), pascal_language::type_print_varspec_prefix(), pascal_language::type_print_varspec_suffix(), validate_actionline(), cooked_index_shard::wait(), and wait_one().

◆ SEEK_CUR

#define SEEK_CUR   1

◆ SEEK_SET

#define SEEK_SET   0

Typedef Documentation

◆ find_memory_region_ftype

typedef int(* find_memory_region_ftype) (CORE_ADDR addr, unsigned long size, int read, int write, int exec, int modified, bool memory_tagged, void *data)

Process memory area starting at ADDR with length SIZE. Area is readable iff READ is non-zero, writable if WRITE is non-zero, executable if EXEC is non-zero. Area is possibly changed against its original file based copy if MODIFIED is non-zero.

MEMORY_TAGGED is true if the memory region contains memory tags, false otherwise.

DATA is passed without changes from a caller.

Definition at line 350 of file defs.h.

◆ initialize_file_ftype

typedef void initialize_file_ftype(void)

Definition at line 314 of file defs.h.

◆ quit_handler_ftype

typedef void quit_handler_ftype(void)

Definition at line 160 of file defs.h.

◆ RequireLongest

template<typename T >
using RequireLongest
Initial value:
gdb::Requires<gdb::Or<std::is_same<T, LONGEST>,
std::is_same<T, ULONGEST>>>

Definition at line 95 of file defs.h.

Enumeration Type Documentation

◆ auto_boolean

A generic, not quite boolean, enumeration. This is used for set/show commands in which the options are on/off/automatic.

Enumerator
AUTO_BOOLEAN_TRUE 
AUTO_BOOLEAN_FALSE 
AUTO_BOOLEAN_AUTO 

Definition at line 246 of file defs.h.

◆ block_enum

enum block_enum

Special block numbers

Enumerator
GLOBAL_BLOCK 
STATIC_BLOCK 
FIRST_LOCAL_BLOCK 

Definition at line 583 of file defs.h.

◆ compile_i_scope_types

Enumerator
COMPILE_I_INVALID_SCOPE 
COMPILE_I_SIMPLE_SCOPE 
COMPILE_I_RAW_SCOPE 
COMPILE_I_PRINT_ADDRESS_SCOPE 
COMPILE_I_PRINT_VALUE_SCOPE 

Definition at line 69 of file defs.h.

◆ info_proc_what

Parameters of the "info proc" command.

Enumerator
IP_MINIMAL 

Display the default cmdline, cwd and exe outputs.

IP_MAPPINGS 

Display ‘info proc mappings’.

IP_STATUS 

Display ‘info proc status’.

IP_STAT 

Display ‘info proc stat’.

IP_CMDLINE 

Display ‘info proc cmdline’.

IP_EXE 

Display ‘info proc exe’.

IP_CWD 

Display ‘info proc cwd’.

IP_FILES 

Display ‘info proc files’.

IP_ALL 

Display all of the above.

Definition at line 379 of file defs.h.

◆ language

enum language

Languages represented in the symbol table and elsewhere. This should probably be in language.h, but since enum's can't be forward declared to satisfy opaque references before their actual definition, needs to be here.

The constants here are in priority order. In particular, demangling is attempted according to this order.

Note that there's ambiguity between the mangling schemes of some of these languages, so some symbols could be successfully demangled by several languages. For that reason, the constants here are sorted in the order we'll attempt demangling them. For example: Rust uses a C++-compatible mangling, so must come before C++; Ada must come last (see ada_sniff_from_mangled_name).

Enumerator
language_unknown 
language_c 
language_objc 
language_rust 
language_cplus 
language_d 
language_go 
language_fortran 
language_m2 
language_asm 
language_pascal 
language_opencl 
language_minimal 
language_ada 
nr_languages 

Definition at line 210 of file defs.h.

◆ lval_type

enum lval_type

Possible lvalue types. Like enum language, this should be in value.h, but needs to be here for the same reason.

Enumerator
not_lval 

Not an lval.

lval_memory 

In memory.

lval_register 

In a register. Registers are relative to a frame.

lval_internalvar 

In a gdb internal variable.

lval_xcallable 

Value encapsulates a callable defined in an extension language.

lval_internalvar_component 

Part of a gdb internal variable (structure field).

lval_computed 

Value's bits are fetched and stored using functions provided by its creator.

Definition at line 358 of file defs.h.

◆ precision_type

Enumerator
single_precision 
double_precision 
unspecified_precision 

Definition at line 237 of file defs.h.

◆ return_value_convention

Potential ways that a function can return a value of a given type.

Enumerator
RETURN_VALUE_REGISTER_CONVENTION 

Where the return value has been squeezed into one or more registers.

RETURN_VALUE_STRUCT_CONVENTION 

Commonly known as the "struct return convention". The caller passes an additional hidden first parameter to the caller. That parameter contains the address at which the value being returned should be stored. While typically, and historically, used for large structs, this is convention is applied to values of many different types.

RETURN_VALUE_ABI_RETURNS_ADDRESS 

Like the "struct return convention" above, but where the ABI guarantees that the called function stores the address at which the value being returned is stored in a well-defined location, such as a register or memory slot in the stack frame. Don't use this if the ABI doesn't explicitly guarantees this.

RETURN_VALUE_ABI_PRESERVES_ADDRESS 

Like the "struct return convention" above, but where the ABI guarantees that the address at which the value being returned is stored will be available in a well-defined location, such as a register or memory slot in the stack frame. Don't use this if the ABI doesn't explicitly guarantees this.

Definition at line 256 of file defs.h.

◆ symbol_needs_kind

Enumerator
SYMBOL_NEEDS_NONE 
SYMBOL_NEEDS_REGISTERS 
SYMBOL_NEEDS_FRAME 

Definition at line 447 of file defs.h.

◆ user_selected_what_flag

Enumerator
USER_SELECTED_INFERIOR 
USER_SELECTED_THREAD 
USER_SELECTED_FRAME 

Definition at line 592 of file defs.h.

Function Documentation

◆ check_quit_flag()

int check_quit_flag ( void )
extern

◆ command_line_input()

const char * command_line_input ( std::string & cmd_line_buffer,
const char * prompt_arg,
const char * annotation_suffix )
extern

◆ copy_integer_to_size()

void copy_integer_to_size ( gdb_byte * dest,
int dest_size,
const gdb_byte * source,
int source_size,
bool is_signed,
enum bfd_endian byte_order )
extern

Definition at line 214 of file findvar.c.

Referenced by reg_buffer::raw_collect_integer(), and reg_buffer::raw_supply_integer().

◆ DEF_ENUM_FLAGS_TYPE()

DEF_ENUM_FLAGS_TYPE ( enum user_selected_what_flag,
user_selected_what  )

◆ default_quit_handler()

void default_quit_handler ( void )
extern

◆ extract_integer()

template<typename T , typename = RequireLongest<T>>
T extract_integer ( gdb::array_view< const gdb_byte > buf,
enum bfd_endian byte_order )

Definition at line 50 of file findvar.c.

◆ extract_long_unsigned_integer()

int extract_long_unsigned_integer ( const gdb_byte * addr,
int orig_len,
enum bfd_endian,
LONGEST * pval )
extern

Definition at line 102 of file findvar.c.

References extract_unsigned_integer().

◆ extract_signed_integer() [1/2]

static LONGEST extract_signed_integer ( const gdb_byte * addr,
int len,
enum bfd_endian byte_order )
inlinestatic

Definition at line 472 of file defs.h.

References extract_signed_integer().

◆ extract_signed_integer() [2/2]

static LONGEST extract_signed_integer ( gdb::array_view< const gdb_byte > buf,
enum bfd_endian byte_order )
inlinestatic

Definition at line 465 of file defs.h.

References extract_integer< LONGEST >().

Referenced by amd64_linux_get_syscall_number(), amd64_relocate_instruction(), amd64_skip_main_prologue(), amd64_windows_frame_decode_epilogue(), bfin_linux_get_syscall_number(), BP_MANIPULATION_ENDIAN(), compute_stack_depth_worker(), cp_print_class_member(), decode_debug_loc_addresses(), decode_debug_loclists_addresses(), disassemble_dwarf_expression(), do_compile_dwarf_expr_to_c(), dwarf2_compile_expr_to_ax(), dwarf2_get_symbol_read_needs(), dwarf_expr_context::execute_stack_op(), extract_signed_integer(), fbsd_core_xfer_siginfo(), fbsd_get_tls_index(), fbsd_read_integer_by_name(), find_extant_func_descr(), frame_unwind_register_signed(), frv_analyze_prologue(), tfile_target::get_trace_state_variable_value(), gnuv3_decode_method_ptr(), hppa_linux_find_global_pointer(), hppabsd_find_global_pointer(), i386_linux_get_syscall_number_from_regcache(), i386_record_lea_modrm_addr(), i386_relocate_instruction(), i386_skip_main_prologue(), ia64_find_global_pointer_from_dynamic_section(), indirect_pieced_value(), loongarch_push_dummy_call(), loongarch_return_value(), mips_eabi_push_dummy_call(), mips_get_mips16_fn_stub_pc(), mips_integer_to_address(), mips_linux_get_syscall_number(), mips_n32n64_push_dummy_call(), mips_o32_push_dummy_call(), mips_o64_push_dummy_call(), mips_pseudo_register_write(), mn10300_analyze_prologue(), ppc_linux_get_syscall_number(), read_code_integer(), read_memory_integer(), record_linux_system_call(), rs6000_aix_extract_ld_info(), s390_displaced_step_copy_insn(), s390_handle_arg(), s390_register_return_value(), safe_read_memory_integer(), signed_pointer_to_address(), sparc32_linux_get_syscall_number(), sparc64_linux_get_syscall_number(), tfile_get_traceframe_address(), tfile_target::trace_find(), trace_save(), unpack_long(), and z80_scan_prologue().

◆ extract_typed_address()

CORE_ADDR extract_typed_address ( const gdb_byte * buf,
struct type * type )
extern

◆ extract_unsigned_integer() [1/2]

static ULONGEST extract_unsigned_integer ( const gdb_byte * addr,
int len,
enum bfd_endian byte_order )
inlinestatic

Definition at line 487 of file defs.h.

References extract_unsigned_integer().

◆ extract_unsigned_integer() [2/2]

static ULONGEST extract_unsigned_integer ( gdb::array_view< const gdb_byte > buf,
enum bfd_endian byte_order )
inlinestatic

Definition at line 480 of file defs.h.

References extract_integer< ULONGEST >().

Referenced by aarch64_fbsd_sigframe_init(), aarch64_get_longjmp_target(), aarch64_linux_core_read_vq(), aarch64_linux_core_read_vq_from_sections(), aarch64_linux_read_signal_frame_info(), aarch64_linux_restore_vregs(), aarch64_linux_supply_ssve_regset(), aarch64_linux_supply_za_regset(), aarch64_process_record(), aarch64_program_breakpoint_here_p(), alpha_get_longjmp_target(), alpha_lds(), alpha_read_insn(), alpha_sts(), amd64_darwin_sigcontext_addr(), amd64_epilogue_frame_cache(), amd64_frame_cache_1(), amd64_linux_sigcontext_addr(), amd64_sigtramp_frame_cache(), amd64_windows_find_unwind_info(), amd64_windows_frame_cache(), amd64_windows_frame_decode_epilogue(), amd64_windows_frame_decode_insns(), amd64obsd_collect_uthread(), arc_get_longjmp_target(), arc_store_return_value(), arm_adjust_breakpoint_address(), arm_breakpoint_kind_from_pc(), arm_get_longjmp_target(), arm_linux_supply_gregset(), arm_none_supply_gregset(), arm_push_dummy_call(), arm_skip_bx_reg(), ppc_linux_nat_target::auxv_parse(), procfs_target::auxv_parse(), s390_linux_nat_target::auxv_parse(), avr_pointer_to_address(), avr_pseudo_register_write(), avr_scan_prologue(), BP_MANIPULATION(), BP_MANIPULATION(), build_traceframe_info(), c_get_string(), c_value_print_array(), char_at(), core_process_module_section(), create_addrmap_from_gdb_index(), create_cus_from_debug_names_list(), create_cus_from_gdb_index_list(), create_signatured_type_table_from_debug_names(), create_signatured_type_table_from_gdb_index(), cris_sigcontext_addr(), cris_sigtramp_frame_unwind_cache(), cris_store_return_value(), csky_check_long_branch(), csky_get_insn(), csky_pc_is_csky16(), csky_push_dummy_call(), csky_return_value(), darwin_current_sos(), darwin_load_image_infos(), darwin_read_exec_load_addr_at_init(), darwin_solib_read_all_image_info_addr(), darwin_validate_exec_header(), regcache::debug_print_register(), decode_debug_loc_addresses(), decode_debug_loc_dwo_addresses(), decode_debug_loclists_addresses(), decode_loadmap(), disassemble_dwarf_expression(), display_one_tib(), do_compile_dwarf_expr_to_c(), dsbt_current_sos(), dwarf2_compile_expr_to_ax(), dwarf2_find_location_expression(), dwarf2_get_symbol_read_needs(), enable_break2(), examine_prologue(), execute_cfa_program(), dwarf_expr_context::execute_stack_op(), extract_call_winsize(), extract_long_unsigned_integer(), extract_unsigned_integer(), fbsd_vmmap_length(), dwarf_expr_context::fetch_address(), riscv_insn::fetch_instruction(), fetch_loadmap(), fetch_loadmap(), fetch_mips_16(), fill_gregset(), find_canonical_descriptor_in_load_object(), dw2_debug_names_iterator::find_vec_in_debug_names(), dw2_debug_names_iterator::find_vec_in_debug_names(), frame_unwind_register_unsigned(), frv_current_sos(), frv_linux_pc_in_sigtramp(), frv_linux_sigcontext_reg_addr(), frv_linux_sigtramp_frame_cache(), frv_push_dummy_call(), frv_skip_main_prologue(), ft32_pointer_to_address(), ft32_store_return_value(), gdb_index_unpack(), generic_auxv_parse(), generic_printstr(), get_target_memory_unsigned(), h8300_push_dummy_call(), h8300_store_return_value(), h8300h_store_return_value(), hppa64_convert_code_addr_to_fptr(), hppa_frame_cache(), hppa_frame_prev_register_helper(), hppa_linux_find_global_pointer(), hppa_match_insns(), hppa_stack_frame_destroyed_p(), hppabsd_find_global_pointer(), i386_darwin_sigcontext_addr(), i386_frame_cache_1(), i386_get_longjmp_target(), i386_gnu_sigcontext_addr(), i386_linux_sigcontext_addr(), i386_process_record(), i386_pseudo_register_read_into_value(), i386_pseudo_register_write(), i386_sigtramp_frame_cache(), i386_svr4_sigcontext_addr(), i386bsd_sigcontext_addr(), i386nto_sigcontext_addr(), i386obsd_collect_uthread(), i387_collect_xsave(), i387_xsave_get_clear_bv(), ia64_convert_from_func_ptr_addr(), ia64_dummy_id(), ia64_find_global_pointer_from_dynamic_section(), ia64_frame_cache(), ia64_frame_prev_register(), ia64_linux_sigcontext_register_address(), ia64_pseudo_register_write(), ia64_push_dummy_call(), ia64_sigtramp_frame_cache(), ia64_unwind_pc(), info_frame_command_core(), insns_match_pattern(), iq2000_pointer_to_address(), jit_read_code_entry(), jit_read_descriptor(), lm32_store_return_value(), lm_base(), lm_base(), locexpr_describe_location_piece(), loclist_describe_location(), loongarch_fetch_instruction(), loongarch_push_dummy_call(), loongarch_return_value(), m32c_m16c_pointer_to_address(), m32c_push_dummy_call(), m32c_return_value(), m32r_linux_collect_gregset(), m32r_linux_supply_gregset(), m32r_push_dummy_call(), m32r_store_return_value(), m68hc11_pseudo_register_write(), m68hc11_push_dummy_call(), m68k_frame_cache(), m68k_get_longjmp_target(), m68k_linux_pc_in_sigtramp(), m68k_linux_sigtramp_frame_cache(), mep_get_insn(), mep_pseudo_cr32_read(), mep_pseudo_cr32_write(), mep_pseudo_csr_write(), mep_push_dummy_call(), microblaze_fetch_instruction(), mips64_fbsd_sigframe_init(), mips64_linux_get_longjmp_target(), mips_fbsd_sigframe_init(), mips_fbsd_supply_fpregs(), mips_fetch_instruction(), mips_linux_get_longjmp_target(), mips_linux_in_dynsym_stub(), mips_n32n64_push_dummy_call(), mips_o32_push_dummy_call(), mips_o64_push_dummy_call(), mips_skip_pic_trampoline_code(), mipsnbsd_get_longjmp_target(), mn10300_push_dummy_call(), modify_field(), moxie_process_readu(), moxie_process_record(), moxie_store_return_value(), msp430_pseudo_register_write(), msp430_push_dummy_call(), msp430_return_value(), mapped_debug_names::namei_to_name(), nds32_get_longjmp_target(), nds32_push_dummy_call(), nds32_store_return_value(), nios2_get_longjmp_target(), nios2_push_dummy_call(), nto_read_auxv_from_initial_stack(), offset_view::operator[](), or1k_fetch_instruction(), or1k_push_dummy_call(), pass_in_x(), phony_iconv(), ppc64_convert_from_func_ptr_addr(), ppc_displaced_step_fixup(), ppcfbsd_sigtramp_frame_sniffer(), ppcobsd_sigtramp_frame_cache(), ppcobsd_sigtramp_frame_sniffer(), print_wchar(), printf_wide_c_string(), pascal_language::printstr(), raw_from_pseudo_register(), read_aarch64_ctx(), read_addrmap_from_aranges(), read_code_unsigned_integer(), read_frame_register_unsigned(), read_memory_unsigned_integer(), read_program_header(), read_target_long_array(), read_target_long_array(), record_linux_msghdr(), record_linux_sockaddr(), record_linux_system_call(), remote_fileio_to_host_uint(), remote_fileio_to_host_ulong(), riscv_fbsd_sigframe_init(), rl78_pointer_to_address(), rl78_return_value(), rs6000_aix_extract_ld_info(), rs6000_fetch_instruction(), rs6000_in_function_epilogue_frame_p(), rs6000_program_breakpoint_here_p(), rs6000_skip_main_prologue(), rx_frame_prev_register(), rx_push_dummy_call(), rx_return_value(), s390_handle_arg(), s390_process_record(), s390_pseudo_register_write(), s390_record_calc_disp_vsce(), s390_register_return_value(), safe_read_memory_unsigned_integer(), scan_dyntag_auxv(), sh_push_dummy_call_fpu(), sh_push_dummy_call_nofpu(), sh_store_return_value_nofpu(), skip_prologue(), skip_prologue_hard_way(), sparc32obsd_collect_uthread(), sparc64_collect_gregset(), sparc64_linux_get_longjmp_target(), sparc64_pseudo_register_write(), sparc64_supply_gregset(), sparc64obsd_collect_uthread(), sparc_collect_rwindow(), sparc_fetch_wcookie(), sparc_supply_rwindow(), stap_modify_semaphore(), linux_nat_trad_target::store_register(), supply_gregset(), supply_sve_regset(), svr4_exec_displacement(), target_read_uint32(), thumb2_copy_table_branch(), thumb_stack_frame_destroyed_p(), tic6x_get_longjmp_target(), tic6x_push_dummy_call(), tilegx_analyze_prologue(), tilegx_get_longjmp_target(), tilegx_push_dummy_call(), tfile_target::trace_find(), trace_save(), traceframe_walk_blocks(), trad_frame_set_reg_regmap(), tramp_frame_start(), unpack_bits_as_long(), unpack_long(), unsigned_pointer_to_address(), v850_push_dummy_call(), v850_store_return_value(), val_print_string(), value_bit_index(), value_cast(), value_pointer(), pascal_language::value_print_inner(), bsd_uthread_target::wait(), windows_solib_create_inferior_hook(), selftests::write_fp_test(), tfile_target::xfer_partial(), xstormy16_find_jmp_table_entry(), xstormy16_pointer_to_address(), xstormy16_push_dummy_call(), xtensa_push_dummy_call(), z80_frame_prev_register(), z80_frame_unwind_cache(), and z80_scan_prologue().

◆ gdb_readline_wrapper()

char * gdb_readline_wrapper ( const char * prompt)
extern

◆ gdb_static_assert()

gdb_static_assert ( nr_languages<= 1<< LANGUAGE_BITS)

◆ initialize_inferiors()

void initialize_inferiors ( void )
extern

◆ initialize_progspace()

void initialize_progspace ( void )
extern

◆ longest_to_int()

int longest_to_int ( LONGEST arg)
extern

Optional native machine support. Non-native (and possibly pure multi-arch) targets do not need a "nm.h" file. This will be a symlink to one of the nm-*.h files, built by the ‘configure’ script.
Convert a LONGEST to an int. This is used in contexts (e.g. number of arguments to a function, number in a value history, register number, etc.) where the value must not be larger than can fit in an int.

Definition at line 1372 of file valprint.c.

Referenced by ada_ternop_slice(), ada_type_of_array(), expr::ada_name_association::assign(), eval_op_repeat(), dwarf_expr_context::fetch_result(), and ignore_command().

◆ maybe_quit()

void maybe_quit ( void )
extern

Definition at line 660 of file utils.c.

References is_main_thread(), quit(), quit_handler, and sync_quit_force_run.

◆ pc_prefix()

const char * pc_prefix ( CORE_ADDR addr)
extern

◆ print_address()

void print_address ( struct gdbarch * gdbarch,
CORE_ADDR addr,
struct ui_file * stream )
extern

◆ print_address_symbolic()

int print_address_symbolic ( struct gdbarch * gdbarch,
CORE_ADDR addr,
struct ui_file * stream,
int do_demangle,
const char * leadin )
extern

◆ print_prompt()

void print_prompt ( void )
extern

◆ quit()

void quit ( void )
extern

◆ quit_serial_event_clear()

void quit_serial_event_clear ( void )
extern

Definition at line 1051 of file event-top.c.

References quit_serial_event, and serial_event_clear().

Referenced by check_quit_flag().

◆ quit_serial_event_set()

void quit_serial_event_set ( void )
extern

Definition at line 1043 of file event-top.c.

References quit_serial_event, and serial_event_set().

Referenced by set_quit_flag().

◆ re_comp()

EXTERN_C char * re_comp ( const char * )

◆ relocate_gdb_directory()

std::string relocate_gdb_directory ( const char * initial,
bool relocatable )
extern

Definition at line 160 of file main.c.

References gdb_program_name, and relocate_path().

Referenced by captured_main_1().

◆ set_force_quit_flag()

void set_force_quit_flag ( )
extern

◆ set_next_address()

void set_next_address ( struct gdbarch * gdbarch,
CORE_ADDR addr )
extern

◆ set_quit_flag()

void set_quit_flag ( void )
extern

◆ store_integer()

template<typename T , typename = RequireLongest<T>>
void store_integer ( gdb_byte * addr,
int len,
enum bfd_endian byte_order,
T val )
extern

◆ store_signed_integer()

static void store_signed_integer ( gdb_byte * addr,
int len,
enum bfd_endian byte_order,
LONGEST val )
inlinestatic

◆ store_typed_address()

void store_typed_address ( gdb_byte * buf,
struct type * type,
CORE_ADDR addr )
extern

◆ store_unsigned_integer()

static void store_unsigned_integer ( gdb_byte * addr,
int len,
enum bfd_endian byte_order,
ULONGEST val )
inlinestatic

Definition at line 515 of file defs.h.

References store_integer().

Referenced by aarch64_linux_collect_za_regset(), aarch64_linux_restore_vregs(), aarch64_linux_set_memtags(), alpha_extract_return_value(), alpha_lds(), alpha_push_dummy_call(), alpha_sts(), amd64_push_dummy_call(), amd64_relocate_instruction(), amd64_windows_push_dummy_call(), amd64obsd_supply_uthread(), data_buf::append_uint(), arc_extract_return_value(), arm_extract_return_value(), arm_linux_supply_gregset(), arm_none_supply_gregset(), arm_push_dummy_call(), avr_address_to_pointer(), avr_pseudo_register_read(), bfin_extract_return_value(), BP_MANIPULATION(), debug_names::build(), collect_inactive_sve_regset(), collect_sve_regset(), cris_extract_return_value(), cris_push_dummy_call(), csky_return_value(), default_guess_tracepoint_registers(), do_ppc_sysv_return_value(), dwarf2_const_value_attr(), dwarf2_const_value_data(), dwarf2_fetch_constant_bytes(), dwarf_expr_context::execute_stack_op(), dwarf_expr_context::fetch_address(), linux_nat_trad_target::fetch_register(), fill_gregset(), find_func_descr(), find_func_descr(), frame_unwind_got_constant(), frv_extract_return_value(), frv_push_dummy_call(), ft32_extract_return_value(), gnuv3_make_method_ptr(), h8300_extract_return_value(), h8300h_extract_return_value(), hppa32_push_dummy_call(), hppa64_push_dummy_call(), hppa_pseudo_register_read(), i386_darwin_push_dummy_call(), i386_relocate_instruction(), i386_thiscall_push_dummy_call(), i386obsd_supply_uthread(), i387_collect_xsave(), i387_supply_fsave(), i387_supply_xsave(), ia64_extract_return_value(), ia64_pseudo_register_read(), ia64_pseudo_register_write(), ia64_push_dummy_call(), iq2000_address_to_pointer(), iq2000_extract_return_value(), iq2000_push_dummy_call(), lm32_extract_return_value(), loongarch_return_value(), m32c_m16c_address_to_pointer(), m32c_return_value(), m32r_extract_return_value(), m32r_linux_collect_gregset(), m32r_linux_supply_gregset(), m32r_push_dummy_call(), m68hc11_pseudo_register_read(), m68hc11_push_dummy_call(), m68k_push_dummy_call(), mark_common_block_symbol_computed(), mep_pseudo_cr32_read(), mep_pseudo_cr32_write(), mep_push_dummy_call(), mips_eabi_push_dummy_call(), mn10300_push_dummy_call(), modify_field(), moxie_extract_return_value(), msp430_pseudo_register_read(), msp430_push_dummy_call(), msp430_return_value(), nds32_extract_return_value(), netorder32(), netorder64(), or1k_push_dummy_call(), or1k_return_value(), pack_unsigned_long(), ppc64_sysv_abi_push_integer(), ppc64_sysv_abi_return_value_base(), ppc_sysv_abi_push_dummy_call(), pseudo_from_raw_register(), debug_names::offset_vec_tmpl< OffsetSize >::push_back_reorder(), riscv_push_dummy_call(), rl78_address_to_pointer(), rl78_push_dummy_call(), rl78_return_value(), rs6000_lynx178_push_dummy_call(), rs6000_lynx178_return_value(), rs6000_push_dummy_call(), rs6000_return_value(), rx_return_value(), s390_guess_tracepoint_registers(), s390_pseudo_register_read(), sh_extract_return_value_nofpu(), sparc32_push_dummy_code(), sparc32_store_arguments(), sparc32obsd_supply_uthread(), sparc64_collect_gregset(), sparc64_pseudo_register_read(), sparc64_supply_gregset(), sparc64obsd_supply_uthread(), sparc_collect_rwindow(), sparc_supply_rwindow(), stap_modify_semaphore(), supply_gregset(), svr4_exec_displacement(), tic6x_push_dummy_call(), unsigned_address_to_pointer(), v850_extract_return_value(), v850_push_dummy_call(), vax_push_dummy_call(), vax_store_arguments(), write_constant_as_bytes(), write_memory_unsigned_integer(), xstormy16_address_to_pointer(), xstormy16_push_dummy_call(), and xtensa_push_dummy_call().

◆ symbol_file_command()

void symbol_file_command ( const char * args,
int from_tty )
extern

Variable Documentation

◆ annotation_level

int annotation_level
extern

Definition at line 234 of file stack.c.

Referenced by annotate_arg_begin(), annotate_arg_end(), annotate_arg_name_end(), annotate_arg_value(), annotate_array_section_begin(), annotate_array_section_end(), annotate_breakpoint(), annotate_breakpoints_headers(), annotate_breakpoints_invalid(), annotate_breakpoints_table(), annotate_breakpoints_table_end(), annotate_catchpoint(), annotate_display_begin(), annotate_display_end(), annotate_display_expression(), annotate_display_expression_end(), annotate_display_format(), annotate_display_number_end(), annotate_display_value(), annotate_elt(), annotate_elt_rep(), annotate_elt_rep_end(), annotate_error(), annotate_error_begin(), annotate_exited(), annotate_field(), annotate_field_begin(), annotate_field_end(), annotate_field_name_end(), annotate_field_value(), annotate_frame_address(), annotate_frame_address_end(), annotate_frame_args(), annotate_frame_begin(), annotate_frame_end(), annotate_frame_function_name(), annotate_frame_source_begin(), annotate_frame_source_end(), annotate_frame_source_file(), annotate_frame_source_file_end(), annotate_frame_source_line(), annotate_frame_where(), annotate_frames_invalid(), annotate_function_call(), annotate_new_thread(), annotate_quit(), annotate_record(), annotate_signal(), annotate_signal_handler_caller(), annotate_signal_name(), annotate_signal_name_end(), annotate_signal_string(), annotate_signal_string_end(), annotate_signalled(), annotate_source(), annotate_source_line(), annotate_starting(), annotate_stopped(), annotate_thread_changed(), annotate_thread_exited(), annotate_value_begin(), annotate_value_end(), annotate_value_history_begin(), annotate_value_history_end(), annotate_value_history_value(), annotate_watchpoint(), ATTRIBUTE_PRINTF(), captured_main_1(), command_line_input(), handle_line_of_input(), info_line_command(), init_main(), print_frame_info(), pager_file::prompt_for_continue(), and top_level_prompt().

◆ debug_file_directory

std::string debug_file_directory
extern

◆ deprecated_attach_hook

void(* deprecated_attach_hook) (void) ( void )
extern

Definition at line 245 of file top.c.

Referenced by attach_post_wait().

◆ deprecated_call_command_hook

void(* deprecated_call_command_hook) (struct cmd_list_element *c, const char *cmd, int from_tty) ( struct cmd_list_element * c,
const char * cmd,
int from_tty )
extern

Definition at line 251 of file top.c.

Referenced by clear_interpreter_hooks(), and execute_command().

◆ deprecated_context_hook

void(* deprecated_context_hook) (int) ( int id)
extern

Definition at line 256 of file top.c.

Referenced by clear_interpreter_hooks(), and handle_signal_stop().

◆ deprecated_detach_hook

void(* deprecated_detach_hook) (void) ( void )
extern

Definition at line 246 of file top.c.

Referenced by detach_command(), disconnect_command(), and generic_mourn_inferior().

◆ deprecated_post_add_symbol_hook

void(* deprecated_post_add_symbol_hook) (void) ( void )
extern

Definition at line 80 of file symfile.c.

Referenced by symbol_file_add_with_addrs().

◆ deprecated_pre_add_symbol_hook

void(* deprecated_pre_add_symbol_hook) (const char *) ( const char * )
extern

Definition at line 79 of file symfile.c.

Referenced by symbol_file_add_with_addrs().

◆ deprecated_print_frame_info_listing_hook

void(* deprecated_print_frame_info_listing_hook) (struct symtab *s, int line, int stopline, int noerror) ( struct symtab * s,
int line,
int stopline,
int noerror )
extern

◆ deprecated_query_hook

int(* deprecated_query_hook) (const char *, va_list) ATTRIBUTE_FPTR_PRINTF(1 ( const char * ,
va_list  )
extern

◆ deprecated_readline_begin_hook

int void void(* deprecated_readline_begin_hook) (const char *,...) ATTRIBUTE_FPTR_PRINTF_1 ( const char * ,
... )
extern

Definition at line 238 of file top.c.

Referenced by clear_interpreter_hooks(), and read_command_lines().

◆ deprecated_readline_end_hook

void(* deprecated_readline_end_hook) (void) ( void )
extern

Definition at line 240 of file top.c.

Referenced by clear_interpreter_hooks(), and read_command_lines().

◆ deprecated_readline_hook

char *(* deprecated_readline_hook) (const char *) ( const char * )
extern

Definition at line 239 of file top.c.

Referenced by clear_interpreter_hooks(), command_line_input(), and read_next_line().

◆ deprecated_show_load_progress

void(* deprecated_show_load_progress) (const char *section, unsigned long section_sent, unsigned long section_size, unsigned long total_sent, unsigned long total_size) ( const char * section,
unsigned long section_sent,
unsigned long section_size,
unsigned long total_sent,
unsigned long total_size )
extern

Definition at line 74 of file symfile.c.

Referenced by load_progress(), and mi_interp::resume().

◆ deprecated_target_wait_hook

ptid_t(* deprecated_target_wait_hook) (ptid_t ptid, struct target_waitstatus *status, int options) ( ptid_t ptid,
struct target_waitstatus * status,
int options )
extern

◆ deprecated_ui_load_progress_hook

int(* deprecated_ui_load_progress_hook) (const char *section, unsigned long num) ( const char * section,
unsigned long num )
extern

Definition at line 72 of file symfile.c.

Referenced by load_progress().

◆ deprecated_ui_loop_hook

int(* deprecated_ui_loop_hook) (int signo) ( int signo)
extern

◆ deprecated_warning_hook

int void(* deprecated_warning_hook) (const char *, va_list) ATTRIBUTE_FPTR_PRINTF(1 ( const char * ,
va_list  )
extern

◆ gdb_datadir

std::string gdb_datadir
extern

◆ gdb_sysroot

std::string gdb_sysroot
extern

◆ info_verbose

bool info_verbose
extern

◆ input_radix

unsigned input_radix
extern

◆ output_radix

unsigned output_radix
extern

Definition at line 196 of file valprint.c.

Referenced by set_output_radix_1(), and show_radix().

◆ python_libdir

std::string python_libdir
extern

If not empty, the possibly relocated path to python's "lib" directory specified with –with-python.

Definition at line 76 of file main.c.

Referenced by captured_main_1().

◆ quit_handler

quit_handler_ftype* quit_handler
extern

◆ selected_frame_level_changed_hook

void(* selected_frame_level_changed_hook) (int) ( int )
extern

◆ sync_quit_force_run

volatile bool sync_quit_force_run
extern

Definition at line 1145 of file event-top.c.

Referenced by maybe_quit(), quit(), quit_force(), and set_force_quit_flag().