GDB (xrefs)
Classes | Macros | Typedefs | Enumerations | Functions | Variables
/tmp/gdb-7.10/gdb/defs.h File Reference
#include "common-defs.h"
#include <sys/types.h>
#include <limits.h>
#include <unistd.h>
#include <fcntl.h>
#include "gdb_wchar.h"
#include "ui-file.h"
#include "host-defs.h"
#include "hashtab.h"
#include "nm.h"
#include "fopen-bin.h"
#include "gdbarch.h"
#include "utils.h"

Go to the source code of this file.

Classes

struct  command_line
 

Macros

#define GCC_GENERATED_STDINT_H   1
 
#define SEEK_SET   0
 
#define SEEK_CUR   1
 
#define O_BINARY   0
 
#define min(a, b)   ((a) < (b) ? (a) : (b))
 
#define max(a, b)   ((a) > (b) ? (a) : (b))
 
#define QUIT   maybe_quit ()
 
#define OPF_TRY_CWD_FIRST   0x01
 
#define OPF_SEARCH_IN_PATH   0x02
 
#define OPF_RETURN_REALPATH   0x04
 
#define UINT_MAX   ((unsigned int)(~0)) /* 0xFFFFFFFF for 32-bits */
 
#define INT_MAX   ((int)(UINT_MAX >> 1)) /* 0x7FFFFFFF for 32-bits */
 
#define INT_MIN   ((int)((int) ~0 ^ INT_MAX)) /* 0x80000000 for 32-bits */
 
#define ULONG_MAX   ((unsigned long)(~0L)) /* 0xFFFFFFFF for 32-bits */
 
#define LONG_MAX   ((long)(ULONG_MAX >> 1)) /* 0x7FFFFFFF for 32-bits */
 
#define ULONGEST_MAX   (~(ULONGEST)0) /* 0xFFFFFFFFFFFFFFFF for 64-bits */
 
#define LONGEST_MAX   ((LONGEST)(ULONGEST_MAX >> 1))
 
#define ISATTY(FP)   (isatty (fileno (FP)))
 
#define GDB_MI_MSG_WIDTH   80
 

Typedefs

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, 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_auto, language_c, language_cplus,
  language_d, language_go, language_objc, language_java,
  language_fortran, language_m2, language_asm, language_pascal,
  language_ada, language_opencl, language_minimal, 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  misc_command_type { ok_command, end_command, else_command, nop_command }
 
enum  command_control_type {
  simple_control, break_control, continue_control, while_control,
  if_control, commands_control, python_control, compile_control,
  guile_control, while_stepping_control, invalid_control
}
 
enum  info_proc_what {
  IP_MINIMAL, IP_MAPPINGS, IP_STATUS, IP_STAT,
  IP_CMDLINE, IP_EXE, IP_CWD, IP_ALL
}
 
enum  val_prettyformat { Val_no_prettyformat = 0, Val_prettyformat, Val_prettyformat_default }
 
enum  gdb_osabi {
  GDB_OSABI_UNINITIALIZED = -1, GDB_OSABI_UNKNOWN = 0, GDB_OSABI_SVR4, GDB_OSABI_HURD,
  GDB_OSABI_SOLARIS, GDB_OSABI_LINUX, GDB_OSABI_FREEBSD_AOUT, GDB_OSABI_FREEBSD_ELF,
  GDB_OSABI_NETBSD_AOUT, GDB_OSABI_NETBSD_ELF, GDB_OSABI_OPENBSD_ELF, GDB_OSABI_WINCE,
  GDB_OSABI_GO32, GDB_OSABI_IRIX, GDB_OSABI_HPUX_ELF, GDB_OSABI_HPUX_SOM,
  GDB_OSABI_QNXNTO, GDB_OSABI_CYGWIN, GDB_OSABI_AIX, GDB_OSABI_DICOS,
  GDB_OSABI_DARWIN, GDB_OSABI_SYMBIAN, GDB_OSABI_OPENVMS, GDB_OSABI_LYNXOS178,
  GDB_OSABI_NEWLIB, GDB_OSABI_SDE, GDB_OSABI_INVALID
}
 
enum  { MAX_REGISTER_SIZE = 64 }
 
enum  block_enum { GLOBAL_BLOCK = 0, STATIC_BLOCK = 1, FIRST_LOCAL_BLOCK = 2 }
 

Functions

void clear_quit_flag (void)
 
int check_quit_flag (void)
 
void set_quit_flag (void)
 
void quit (void)
 
void maybe_quit (void)
 
char * relocate_gdb_directory (const char *initial, int flag)
 
EXTERN_C char * re_comp (const char *)
 
void symbol_file_command (char *, int)
 
void generic_load (const char *name, int from_tty)
 
void print_transfer_performance (struct ui_file *stream, unsigned long data_count, unsigned long write_count, const struct timeval *start_time, const struct timeval *end_time)
 
char * gdb_readline (const char *)
 
char * gdb_readline_wrapper (const char *)
 
char * command_line_input (const char *, int, char *)
 
void print_prompt (void)
 
int input_from_terminal_p (void)
 
void set_next_address (struct gdbarch *, CORE_ADDR)
 
int print_address_symbolic (struct gdbarch *, CORE_ADDR, struct ui_file *, int, char *)
 
int build_address_symbolic (struct gdbarch *, CORE_ADDR addr, int do_demangle, char **name, int *offset, char **filename, int *line, int *unmapped)
 
void print_address (struct gdbarch *, CORE_ADDR, struct ui_file *)
 
const char * pc_prefix (CORE_ADDR)
 
int openp (const char *, int, const char *, int, char **)
 
int source_full_path_of (const char *, char **)
 
void mod_path (char *, char **)
 
void add_path (char *, char **, int)
 
void directory_switch (char *, int)
 
void init_source_path (void)
 
struct command_lineread_command_lines (char *, int, int, void(*)(char *, void *), void *)
 
struct command_lineread_command_lines_1 (char *(*)(void), int, void(*)(char *, void *), void *)
 
void free_command_lines (struct command_line **)
 
int longest_to_int (LONGEST)
 
double atof (const char *)
 
LONGEST extract_signed_integer (const gdb_byte *, int, enum bfd_endian)
 
ULONGEST extract_unsigned_integer (const gdb_byte *, int, enum bfd_endian)
 
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)
 
void store_signed_integer (gdb_byte *, int, enum bfd_endian, LONGEST)
 
void store_unsigned_integer (gdb_byte *, int, enum bfd_endian, ULONGEST)
 
void store_typed_address (gdb_byte *buf, struct type *type, CORE_ADDR addr)
 
void initialize_progspace (void)
 
void initialize_inferiors (void)
 

Variables

int dbx_commands
 
char * gdb_sysroot
 
char * gdb_datadir
 
char * python_libdir
 
char * debug_file_directory
 
volatile int sync_quit_force_run
 
int immediate_quit
 
int annotation_level
 
int info_verbose
 
char * source_path
 
char * current_directory
 
unsigned input_radix
 
unsigned output_radix
 
int watchdog
 
char * interpreter_p
 
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_interactive_hook )(void)
 
void(* deprecated_readline_begin_hook )(char *,...) ATTRIBUTE_FPTR_PRINTF_1
 
char *(* deprecated_readline_hook )(const char *)
 
void(* deprecated_readline_end_hook )(void)
 
void(* deprecated_register_changed_hook )(int regno)
 
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, char *cmd, int from_tty)
 
int(* deprecated_ui_load_progress_hook )(const char *section, unsigned long num)
 

Macro Definition Documentation

#define GCC_GENERATED_STDINT_H   1

Definition at line 45 of file defs.h.

#define GDB_MI_MSG_WIDTH   80

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

Definition at line 671 of file defs.h.

Referenced by ser_base_read_error_fd().

#define INT_MAX   ((int)(UINT_MAX >> 1)) /* 0x7FFFFFFF for 32-bits */
#define INT_MIN   ((int)((int) ~0 ^ INT_MAX)) /* 0x80000000 for 32-bits */
#define ISATTY (   FP)    (isatty (fileno (FP)))
#define LONG_MAX   ((long)(ULONG_MAX >> 1)) /* 0x7FFFFFFF for 32-bits */
#define LONGEST_MAX   ((LONGEST)(ULONGEST_MAX >> 1))

Definition at line 529 of file defs.h.

#define max (   a,
 
)    ((a) > (b) ? (a) : (b))
#define min (   a,
 
)    ((a) < (b) ? (a) : (b))

Definition at line 106 of file defs.h.

Referenced by aarch64_scan_prologue(), amd64_analyze_stack_align(), amd64_push_arguments(), amd64_return_value(), amd64_windows_store_arg_in_reg(), amd64_x32_analyze_stack_align(), arm_adjust_breakpoint_address(), btrace_compute_ftrace_bts(), btrace_compute_src_line_range(), btrace_insn_next(), btrace_insn_prev(), call0_analyze_prologue(), chain_candidate(), claim_memory(), convert_floatformat_to_doublest(), convert_typed_floating(), dwarf2_get_subprogram_pc_bounds(), find_first_range_overlap_and_match(), floatformat_classify(), ftrace_new_return(), gcore_copy_callback(), get_scope_pc_bounds(), hardware_watchpoint_inserted_in_range(), hppa64_push_dummy_call(), hppa64_return_value(), i386_analyze_stack_align(), insert_into_bit_range_vector(), lzma_pread(), m32r_load(), m32r_skip_prologue(), m88k_analyze_prologue(), make_srec(), mem_ranges_overlap(), memory_xfer_partial(), micromips_scan_prologue(), mips_load_srec(), monitor_read_memory(), net_open(), pmon_load_fast(), procfs_meminfo(), producer_is_gcc(), ranges_copy_adjusted(), ranges_overlap(), read_string(), record_btrace_xfer_partial(), release_fileio_fd(), remote_read_bytes_1(), remote_read_qxfer(), remote_threads_extra_info(), remote_write_bytes_aux(), rx_push_dummy_call(), rx_return_value(), s390_prepare_to_resume(), section_table_read_available_memory(), sh_analyze_prologue(), sh_skip_prologue(), simple_search_memory(), simple_verify_memory(), tfile_xfer_partial(), thumb_scan_prologue(), tilegx_analyze_prologue(), tilegx_skip_prologue(), traceframe_available_memory(), val_print_string(), VEC(), vlscm_convert_typed_number(), and vlscm_integer_fits_p().

#define O_BINARY   0
#define OPF_RETURN_REALPATH   0x04
#define OPF_SEARCH_IN_PATH   0x02
#define OPF_TRY_CWD_FIRST   0x01
#define QUIT   maybe_quit ()

Definition at line 160 of file defs.h.

Referenced by ada_val_print_enum(), add_symtab_completions(), amd64_windows_frame_decode_epilogue(), amd64_windows_frame_decode_insns(), backtrace_command_1(), breakpoint_1(), c_type_print_base(), c_type_print_varspec_prefix(), c_type_print_varspec_suffix(), classes_info(), coff_symtab_read(), collect_symbol(), command_line_input(), cp_find_class_member(), default_make_symbol_completion_list_break_on_1(), do_examine(), dump_insns(), dw2_expand_symtabs_matching(), encode_actions_1(), execute_control_command(), execute_stack_op(), f_type_print_base(), f_type_print_varspec_prefix(), f_type_print_varspec_suffix(), find_methods(), gdb_bfd_iovec_fileio_pread(), generic_printstr(), generic_val_print(), getpkt_or_notif_sane_1(), java_type_print_base(), m2_enum(), m2_print_type(), m2_printstr(), m2_record_fields(), m32r_load_section(), maintenance_check_symtabs(), maintenance_expand_file_matcher(), maintenance_info_psymtabs(), maintenance_info_symtabs(), maintenance_print_msymbols(), maintenance_print_objfiles(), maintenance_print_psymbols(), maintenance_print_symbols(), make_symbol_overload_list_qualified(), mi_cmd_stack_info_depth(), mi_cmd_stack_list_args(), mi_cmd_stack_list_frames(), mips_expect_timeout(), mips_xfer_memory(), monitor_expect(), pascal_printstr(), pascal_type_print_base(), pascal_type_print_varspec_prefix(), pascal_type_print_varspec_suffix(), print_enum_type(), print_frame(), print_frame_args(), print_frame_nameless_args(), print_object_command(), print_objfile_statistics(), print_partial_symbols(), print_selected_record_field_types(), print_symbol_bcache_statistics(), printf_c_string(), printf_wide_c_string(), printstr(), prompt_for_continue(), psym_expand_symtabs_matching(), psym_map_matching_symbols(), psym_map_symbol_filenames(), read_dbx_symtab(), read_memory(), read_ofile_symtab(), read_string(), read_value_memory(), read_xcoff_symtab(), recursively_search_psymtabs(), remote_download_command_source(), remote_download_tracepoint(), remote_get_noisy_reply(), remote_rcmd(), remote_start_remote(), resume(), scan_file_globals(), scan_xcoff_symtab(), scope_info(), search_symbols(), selectors_info(), signals_info(), simple_verify_memory(), skip_info(), stringify_collection_list(), 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(), val_print(), validate_actionline(), and VEC().

#define SEEK_CUR   1
#define SEEK_SET   0
#define UINT_MAX   ((unsigned int)(~0)) /* 0xFFFFFFFF for 32-bits */

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.

Definition at line 505 of file defs.h.

Referenced by c_get_string(), call0_analyze_prologue(), call0_frame_cache(), command_size_to_target_size(), do_set_command(), do_show_command(), extract_arg(), fputs_maybe_filtered(), gdbpy_parameter_value(), get_uint(), init_page_info(), pascm_param_value(), pascm_set_param_value_x(), puts_filtered_tabular(), set_parameter_value(), val_print_array_elements(), validate_history_size(), and wrap_here().

#define ULONG_MAX   ((unsigned long)(~0L)) /* 0xFFFFFFFF for 32-bits */

Definition at line 517 of file defs.h.

Referenced by extract_arg().

#define ULONGEST_MAX   (~(ULONGEST)0) /* 0xFFFFFFFFFFFFFFFF for 64-bits */

Typedef Documentation

typedef int(* find_memory_region_ftype) (CORE_ADDR addr, unsigned long size, int read, int write, int exec, int modified, 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. DATA is passed without changes from a caller.

Definition at line 343 of file defs.h.

typedef void initialize_file_ftype(void)

Definition at line 281 of file defs.h.

Enumeration Type Documentation

anonymous enum

Maximum size of a register. Something small, but large enough for all known ISAs. If it turns out to be too small, make it bigger.

Enumerator
MAX_REGISTER_SIZE 

Definition at line 590 of file defs.h.

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 196 of file defs.h.

enum block_enum

Special block numbers

Enumerator
GLOBAL_BLOCK 
STATIC_BLOCK 
FIRST_LOCAL_BLOCK 

Definition at line 680 of file defs.h.

Enumerator
simple_control 
break_control 
continue_control 
while_control 
if_control 
commands_control 
python_control 
compile_control 
guile_control 
while_stepping_control 
invalid_control 

Definition at line 379 of file defs.h.

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 60 of file defs.h.

enum gdb_osabi

List of known OS ABIs. If you change this, make sure to update the table in osabi.c.

Enumerator
GDB_OSABI_UNINITIALIZED 
GDB_OSABI_UNKNOWN 
GDB_OSABI_SVR4 
GDB_OSABI_HURD 
GDB_OSABI_SOLARIS 
GDB_OSABI_LINUX 
GDB_OSABI_FREEBSD_AOUT 
GDB_OSABI_FREEBSD_ELF 
GDB_OSABI_NETBSD_AOUT 
GDB_OSABI_NETBSD_ELF 
GDB_OSABI_OPENBSD_ELF 
GDB_OSABI_WINCE 
GDB_OSABI_GO32 
GDB_OSABI_IRIX 
GDB_OSABI_HPUX_ELF 
GDB_OSABI_HPUX_SOM 
GDB_OSABI_QNXNTO 
GDB_OSABI_CYGWIN 
GDB_OSABI_AIX 
GDB_OSABI_DICOS 
GDB_OSABI_DARWIN 
GDB_OSABI_SYMBIAN 
GDB_OSABI_OPENVMS 
GDB_OSABI_LYNXOS178 
GDB_OSABI_NEWLIB 
GDB_OSABI_SDE 
GDB_OSABI_INVALID 

Definition at line 540 of file defs.h.

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_ALL 

Display all of the above.

Definition at line 431 of file defs.h.

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.

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

Definition at line 167 of file defs.h.

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 350 of file defs.h.

Control types for commands.

Enumerator
ok_command 
end_command 
else_command 
nop_command 

Definition at line 371 of file defs.h.

Enumerator
single_precision 
double_precision 
unspecified_precision 

Definition at line 187 of file defs.h.

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 206 of file defs.h.

Possibilities for prettyformat parameters to routines which print things. Like enum language, this should be in value.h, but needs to be here for the same reason. FIXME: If we can eliminate this as an arg to LA_VAL_PRINT, then we can probably move it back to value.h.

Enumerator
Val_no_prettyformat 
Val_prettyformat 
Val_prettyformat_default 

Use the default setting which the user has specified.

Definition at line 472 of file defs.h.

Function Documentation

void add_path ( char *  ,
char **  ,
int   
)
double atof ( const char *  )

Referenced by define_symbol(), and parse_number().

int build_address_symbolic ( struct gdbarch ,
CORE_ADDR  addr,
int  do_demangle,
char **  name,
int offset,
char **  filename,
int line,
int unmapped 
)
int check_quit_flag ( void  )

Evaluate to non-zero if the quit flag is set, zero otherwise. This will clear the quit flag as a side effect.

Definition at line 831 of file extension.c.

References ALL_ENABLED_EXTENSION_LANGUAGES, extension_language_ops::check_quit_flag, and extension_language_defn::ops.

Referenced by async_request_quit(), gdb_os_poll_quit(), load_progress(), maybe_quit(), remote_wait_as(), restore_active_ext_lang(), and set_active_ext_lang().

void clear_quit_flag ( void  )
char* command_line_input ( const char *  ,
int  ,
char *   
)
void directory_switch ( char *  ,
int   
)

Definition at line 451 of file source.c.

References add_path(), and source_path.

Referenced by captured_main().

int extract_long_unsigned_integer ( const gdb_byte ,
int  ,
enum  bfd_endian,
LONGEST  
)

Definition at line 119 of file findvar.c.

References extract_unsigned_integer(), int, and len.

Referenced by val_print_type_code_int().

LONGEST extract_signed_integer ( const gdb_byte ,
int  ,
enum  bfd_endian 
)

Definition at line 49 of file findvar.c.

References _, error(), and len.

Referenced by aarch64_linux_get_syscall_number(), amd64_linux_get_syscall_number(), amd64_relocate_instruction(), amd64_skip_main_prologue(), amd64_windows_frame_decode_epilogue(), bfin_linux_get_syscall_number(), compute_stack_depth_worker(), cp_print_class_member(), decode_debug_loc_addresses(), disassemble_dwarf_expression(), do_compile_dwarf_expr_to_c(), dwarf2_compile_expr_to_ax(), dwarf2_locexpr_baton_eval(), evaluate_subexp_java(), execute_stack_op(), find_extant_func_descr(), fixup_riprel(), frame_unwind_register_signed(), frv_analyze_prologue(), 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(), java_value_print(), mips64_fill_fpregset(), mips64_fill_gregset(), 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(), mt_select_coprocessor(), ppc_linux_get_syscall_number(), ppc_linux_spe_context(), read_code_integer(), read_memory_integer(), record_linux_system_call(), regcache_cooked_read_signed(), regcache_raw_read_signed(), rs6000_aix_extract_ld_info(), 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(), supply_32bit_reg(), tfile_get_trace_state_variable_value(), tfile_get_traceframe_address(), tfile_trace_find(), trace_save(), and unpack_long().

CORE_ADDR extract_typed_address ( const gdb_byte buf,
struct type type 
)
ULONGEST extract_unsigned_integer ( const gdb_byte ,
int  ,
enum  bfd_endian 
)

Definition at line 84 of file findvar.c.

References _, error(), and len.

Referenced by aarch64_get_longjmp_target(), aarch64_process_record(), 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(), amd64fbsd_sigcontext_addr(), amd64obsd_collect_uthread(), arm_adjust_breakpoint_address(), arm_breakpoint_from_pc(), arm_get_longjmp_target(), arm_linux_supply_gregset(), arm_push_dummy_call(), arm_skip_bx_reg(), arm_symbian_skip_trampoline_code(), avr_pointer_to_address(), avr_pseudo_register_write(), avr_push_dummy_call(), avr_scan_prologue(), bsd_uthread_wait(), build_traceframe_info(), c_get_string(), c_val_print(), char_at(), core_process_module_section(), create_addrmap_from_index(), create_cus_from_index_list(), create_signatured_type_table_from_index(), cris_sigcontext_addr(), cris_sigtramp_frame_unwind_cache(), cris_store_return_value(), darwin_current_sos(), darwin_load_image_infos(), darwin_read_exec_load_addr(), darwin_solib_read_all_image_info_addr(), debug_print_register(), decode_debug_loc_addresses(), decode_debug_loc_dwo_addresses(), decode_loadmap(), default_auxv_parse(), disassemble_dwarf_expression(), display_one_tib(), do_compile_dwarf_expr_to_c(), dsbt_current_sos(), dwarf2_compile_expr_to_ax(), dwarf2_find_location_expression(), dwarf_expr_fetch_address(), enable_break2(), examine_prologue(), execute_cfa_program(), execute_stack_op(), extract_arm_insn(), extract_call_winsize(), extract_long_unsigned_integer(), fetch_loadmap(), fetch_mips_16(), fill_gregset(), find_canonical_descriptor_in_load_object(), frame_info(), 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_store_return_value(), 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_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(), 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_sigtramp_frame_prev_register(), ia64_unwind_pc(), info_spu_dma_cmdlist(), info_spu_dma_command(), info_spu_mailbox_list(), info_spu_proxydma_command(), info_spu_signal_command(), insns_match_pattern(), iq2000_pointer_to_address(), java_value_print(), jit_read_code_entry(), jit_read_descriptor(), linux_spu_make_corefile_notes(), lm32_push_dummy_call(), lm32_store_return_value(), lm_base(), locexpr_describe_location_piece(), loclist_describe_location(), 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_linux_get_longjmp_target(), 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(), mips_xfer_memory(), mipsnbsd_get_longjmp_target(), mn10300_push_dummy_call(), modify_field(), monitor_write_memory(), moxie_process_readu(), moxie_process_record(), moxie_store_return_value(), msp430_pseudo_register_write(), msp430_push_dummy_call(), msp430_return_value(), mt_pseudo_register_write(), mt_push_dummy_call(), mt_registers_info(), nios2_get_longjmp_target(), nios2_push_dummy_call(), obsd_auxv_parse(), parse_spufs_run(), pascal_printstr(), pascal_val_print(), pass_in_x(), ppc64_convert_from_func_ptr_addr(), ppc_displaced_step_fixup(), ppc_linux_auxv_parse(), ppc_linux_spe_context(), ppcfbsd_sigtramp_frame_sniffer(), ppcobsd_sigtramp_frame_cache(), ppcobsd_sigtramp_frame_sniffer(), ppu2spu_sniffer(), print_wchar(), printf_wide_c_string(), raw_from_pseudo_register(), read_code_unsigned_integer(), read_frame_register_unsigned(), read_memory_unsigned_integer(), read_program_header(), read_string(), read_target_long_array(), record_linux_msghdr(), record_linux_sockaddr(), record_linux_system_call(), regcache_cooked_read_unsigned(), regcache_raw_read_unsigned(), remote_fileio_to_host_uint(), remote_fileio_to_host_ulong(), rl78_pointer_to_address(), rl78_return_value(), rs6000_aix_extract_ld_info(), rs6000_fetch_instruction(), rs6000_in_function_epilogue_frame_p(), rs6000_skip_main_prologue(), rx_frame_prev_register(), rx_push_dummy_call(), rx_return_value(), s390_auxv_parse(), s390_handle_arg(), s390_pseudo_register_write(), s390_register_return_value(), scan_dyntag_auxv(), score3_adjust_pc_and_fetch_inst(), score7_breakpoint_from_pc(), score7_fetch_inst(), score_push_dummy_call(), sh64_pseudo_register_read(), sh64_pseudo_register_write(), sh64_push_dummy_call(), 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(), spu2ppu_sniffer(), spu_analyze_prologue(), spu_current_sos(), spu_frame_unwind_cache(), spu_get_longjmp_target(), spu_get_overlay_table(), spu_pointer_to_address(), spu_pseudo_register_write_spu(), spu_push_dummy_call(), spu_software_single_step(), spu_stack_frame_destroyed_p(), stap_modify_semaphore(), supply_gregset(), svr4_exec_displacement(), target_read_uint32(), tfile_trace_find(), tfile_xfer_partial(), 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(), trace_save(), traceframe_walk_blocks(), 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(), xstormy16_find_jmp_table_entry(), xstormy16_pointer_to_address(), xstormy16_push_dummy_call(), xstormy16_resolve_jmp_table_entry(), xtensa_pseudo_register_read(), xtensa_pseudo_register_write(), and xtensa_push_dummy_call().

void free_command_lines ( struct command_line **  )
char* gdb_readline ( const char *  )

Definition at line 615 of file top.c.

References fputs_unfiltered(), gdb_flush(), gdb_stdout, instream, xfree(), xmalloc(), and xrealloc().

Referenced by command_line_input().

char* gdb_readline_wrapper ( const char *  )
void generic_load ( const char *  name,
int  from_tty 
)
void init_source_path ( void  )
void initialize_inferiors ( void  )
void initialize_progspace ( void  )
int input_from_terminal_p ( void  )
int longest_to_int ( LONGEST  )
void maybe_quit ( void  )
void mod_path ( char *  ,
char **   
)

Definition at line 459 of file source.c.

References add_path().

Referenced by directory_command(), path_command(), and set_directories_command().

int openp ( const char *  ,
int  ,
const char *  ,
int  ,
char **   
)
const char* pc_prefix ( CORE_ADDR  )

Definition at line 752 of file printcmd.c.

References get_frame_pc_if_available(), get_selected_frame(), and has_stack_frames().

Referenced by do_examine(), and dump_insns().

void print_address ( struct gdbarch ,
CORE_ADDR  ,
struct ui_file  
)
int print_address_symbolic ( struct gdbarch ,
CORE_ADDR  ,
struct ui_file ,
int  ,
char *   
)
void print_prompt ( void  )
void print_transfer_performance ( struct ui_file stream,
unsigned long  data_count,
unsigned long  write_count,
const struct timeval *  start_time,
const struct timeval *  end_time 
)
void quit ( void  )
EXTERN_C char* re_comp ( const char *  )
struct command_line* read_command_lines ( char *  ,
int  ,
int  ,
void(*)(char *, void *)  ,
void *   
)
struct command_line* read_command_lines_1 ( char *  *)(void,
int  ,
void(*)(char *, void *)  ,
void *   
)
char* relocate_gdb_directory ( const char *  initial,
int  flag 
)

Definition at line 161 of file main.c.

References gdb_program_name, relocate_path(), and xfree().

Referenced by _initialize_jit(), and captured_main().

void set_next_address ( struct gdbarch ,
CORE_ADDR   
)
void set_quit_flag ( void  )
int source_full_path_of ( const char *  ,
char **   
)

Definition at line 914 of file source.c.

References openp(), OPF_RETURN_REALPATH, OPF_SEARCH_IN_PATH, OPF_TRY_CWD_FIRST, and source_path.

Referenced by exec_file_locate_attach().

void store_signed_integer ( gdb_byte ,
int  ,
enum  bfd_endian,
LONGEST   
)
void store_typed_address ( gdb_byte buf,
struct type type,
CORE_ADDR  addr 
)
void store_unsigned_integer ( gdb_byte ,
int  ,
enum  bfd_endian,
ULONGEST   
)

Definition at line 212 of file findvar.c.

References len.

Referenced by aarch64_extract_return_value(), ada_value_binop(), add_address_entry(), add_to_spuid_list(), 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(), arm_extract_return_value(), arm_linux_supply_gregset(), arm_push_dummy_call(), avr_address_to_pointer(), avr_pseudo_register_read(), bfin_extract_return_value(), cris_extract_return_value(), cris_push_dummy_call(), do_ppc_sysv_return_value(), dwarf2_const_value_attr(), dwarf2_const_value_data(), dwarf2_fetch_constant_bytes(), dwarf_expr_fetch_address(), execute_stack_op(), fill_gregset(), 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_push_dummy_call(), i386_relocate_instruction(), i386obsd_supply_uthread(), i387_supply_fsave(), 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(), m32c_m16c_address_to_pointer(), m32c_return_value(), m32r_extract_return_value(), m32r_fetch_register(), 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(), mips_set_register(), mips_xfer_memory(), mn10300_push_dummy_call(), modify_field(), monitor_read_memory_single(), monitor_supply_register(), moxie_extract_return_value(), msp430_pseudo_register_read(), msp430_push_dummy_call(), msp430_return_value(), mt_return_value(), netorder16(), netorder32(), netorder64(), pack_unsigned_long(), ppc64_sysv_abi_push_integer(), ppc64_sysv_abi_return_value_base(), ppc_sysv_abi_push_dummy_call(), ppu2spu_unwind_register(), pseudo_from_raw_register(), regcache_cooked_write_unsigned(), regcache_raw_write_unsigned(), 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_pseudo_register_read(), scalar_binop(), sh64_pseudo_register_read(), sh64_pseudo_register_write(), 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(), spu_address_to_pointer(), spu_enumerate_spu_ids(), spu_fetch_inferior_registers(), spu_fetch_registers(), spu_pseudo_register_read_spu(), spu_push_dummy_call(), stap_modify_semaphore(), supply_gregset(), svr4_exec_displacement(), tic6x_push_dummy_call(), tracefile_fetch_registers(), 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(), write_one_signatured_type(), write_psymtabs_to_index(), xstormy16_address_to_pointer(), xstormy16_push_dummy_call(), and xtensa_push_dummy_call().

void symbol_file_command ( char *  ,
int   
)

Variable Documentation

int annotation_level

Definition at line 109 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_starting(), annotate_stopped(), annotate_thread_changed(), annotate_value_begin(), annotate_value_end(), annotate_value_history_begin(), annotate_value_history_end(), annotate_value_history_value(), annotate_watchpoint(), ATTRIBUTE_PRINTF(), captured_main(), command_line_handler(), command_line_input(), init_main(), line_info(), print_frame_info(), prompt_for_continue(), and top_level_prompt().

char* current_directory

String containing the current directory (what getwd would return).

Definition at line 117 of file top.c.

Referenced by add_path(), bsd_kvm_open(), captured_main(), cd_command(), core_open(), gdb_abspath(), gdb_init(), go32_wait(), init_history(), m32r_upload_command(), openp(), pwd_command(), set_history_filename(), shell_escape(), and tfile_open().

int dbx_commands
char* debug_file_directory

Search path for separate debug files.

Definition at line 1434 of file symfile.c.

Referenced by _initialize_symfile(), build_id_to_debug_bfd(), captured_main(), find_separate_debug_file(), open_dwo_file(), open_dwp_file(), try_open_dwop_file(), and VEC().

void(* deprecated_attach_hook) (void)

Definition at line 216 of file top.c.

Referenced by attach_command_post_wait().

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

Definition at line 239 of file top.c.

Referenced by clear_interpreter_hooks(), and execute_command().

void(* deprecated_context_hook) (int)

Definition at line 244 of file top.c.

Referenced by clear_interpreter_hooks(), and handle_signal_stop().

void(* deprecated_detach_hook) (void)

Definition at line 217 of file top.c.

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

int(*) void(*) void(* deprecated_interactive_hook) (void)

Definition at line 222 of file top.c.

Referenced by clear_interpreter_hooks(), and maybe_quit().

void(* deprecated_post_add_symbol_hook) (void)

Definition at line 77 of file symfile.c.

Referenced by symbol_file_add_with_addrs().

void(* deprecated_pre_add_symbol_hook) (const char *)

Definition at line 76 of file symfile.c.

Referenced by symbol_file_add_with_addrs().

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
void(* deprecated_readline_begin_hook) (char *,...) ATTRIBUTE_FPTR_PRINTF_1

Definition at line 209 of file top.c.

Referenced by clear_interpreter_hooks(), and read_command_lines().

void(* deprecated_readline_end_hook) (void)

Definition at line 211 of file top.c.

Referenced by clear_interpreter_hooks(), and read_command_lines().

char*(* deprecated_readline_hook) (const char *)

Definition at line 210 of file top.c.

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

void(* deprecated_register_changed_hook) (int regno)

Definition at line 227 of file top.c.

Referenced by clear_interpreter_hooks(), tui_install_hooks(), tui_remove_hooks(), and value_assign().

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

Definition at line 71 of file symfile.c.

Referenced by load_progress(), and mi_interpreter_resume().

ptid_t(* deprecated_target_wait_hook) (ptid_t ptid, struct target_waitstatus *status, int options)
int(* deprecated_ui_load_progress_hook) (const char *section, unsigned long num)

Definition at line 69 of file symfile.c.

Referenced by load_progress(), load_srec(), mips_load_srec(), and pmon_load_fast().

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

Definition at line 195 of file top.c.

Referenced by clear_interpreter_hooks(), and vwarning().

char* gdb_datadir
char* gdb_sysroot
int immediate_quit
int info_verbose
unsigned input_radix

Default radixes for input and output. Only some values supported.

Definition at line 166 of file valprint.c.

Referenced by breakpoint_re_set(), classify_name(), init_raw_breakpoint_without_location(), lex_one_token(), parse_number(), prepare_re_set_context(), set_input_radix_1(), show_radix(), varobj_set_value(), and yylex().

char* interpreter_p

The name of the interpreter if specified on the command line.

Definition at line 51 of file main.c.

Referenced by _initialize_tui_interp(), captured_main(), and interp_set().

unsigned output_radix

Definition at line 176 of file valprint.c.

Referenced by set_output_radix_1(), and show_radix().

char* python_libdir

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

Definition at line 69 of file main.c.

Referenced by _initialize_python(), and captured_main().

void(* selected_frame_level_changed_hook) (int)
char* source_path
volatile int sync_quit_force_run

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

Referenced by handle_sigterm(), maybe_quit(), and quit().

int watchdog