GDB (xrefs)
|
Go to the source code of this file.
Classes | |
struct | ext_lang_type_printers |
struct | xmethod_worker |
Typedefs | |
typedef void | script_sourcer_func(const struct extension_language_defn *, FILE *stream, const char *filename) |
typedef void | objfile_script_sourcer_func(const struct extension_language_defn *, struct objfile *, FILE *stream, const char *filename) |
typedef void | objfile_script_executor_func(const struct extension_language_defn *, struct objfile *, const char *name, const char *script) |
typedef std::unique_ptr< xmethod_worker > | xmethod_worker_up |
Enumerations | |
enum | extension_language { EXT_LANG_NONE , EXT_LANG_GDB , EXT_LANG_PYTHON , EXT_LANG_GUILE } |
enum | ext_lang_bt_status { EXT_LANG_BT_ERROR = -1 , EXT_LANG_BT_OK = 1 , EXT_LANG_BT_NO_FILTERS = 2 } |
enum | frame_filter_flag { PRINT_LEVEL = 1 << 0 , PRINT_FRAME_INFO = 1 << 1 , PRINT_ARGS = 1 << 2 , PRINT_LOCALS = 1 << 3 , PRINT_MORE_FRAMES = 1 << 4 , PRINT_HIDE = 1 << 5 } |
enum | ext_lang_frame_args { NO_VALUES = PRINT_NO_VALUES , MI_PRINT_ALL_VALUES = PRINT_ALL_VALUES , MI_PRINT_SIMPLE_VALUES = PRINT_SIMPLE_VALUES , CLI_SCALAR_VALUES , CLI_ALL_VALUES , CLI_PRESENCE } |
enum | ext_lang_bp_stop { EXT_LANG_BP_STOP_UNSET , EXT_LANG_BP_STOP_NO , EXT_LANG_BP_STOP_YES } |
enum | ext_lang_rc { EXT_LANG_RC_OK , EXT_LANG_RC_NOP , EXT_LANG_RC_ERROR } |
Variables | |
const struct extension_language_defn | extension_language_gdb |
typedef void objfile_script_executor_func(const struct extension_language_defn *, struct objfile *, const char *name, const char *script) |
Definition at line 54 of file extension.h.
typedef void objfile_script_sourcer_func(const struct extension_language_defn *, struct objfile *, FILE *stream, const char *filename) |
Definition at line 48 of file extension.h.
typedef void script_sourcer_func(const struct extension_language_defn *, FILE *stream, const char *filename) |
Definition at line 42 of file extension.h.
typedef std::unique_ptr<xmethod_worker> xmethod_worker_up |
Definition at line 229 of file extension.h.
enum ext_lang_bp_stop |
Enumerator | |
---|---|
EXT_LANG_BP_STOP_UNSET | |
EXT_LANG_BP_STOP_NO | |
EXT_LANG_BP_STOP_YES |
Definition at line 137 of file extension.h.
enum ext_lang_bt_status |
Enumerator | |
---|---|
EXT_LANG_BT_ERROR | |
EXT_LANG_BT_OK | |
EXT_LANG_BT_NO_FILTERS |
Definition at line 70 of file extension.h.
enum ext_lang_frame_args |
Enumerator | |
---|---|
NO_VALUES | |
MI_PRINT_ALL_VALUES | |
MI_PRINT_SIMPLE_VALUES | |
CLI_SCALAR_VALUES | |
CLI_ALL_VALUES | |
CLI_PRESENCE |
Definition at line 113 of file extension.h.
enum ext_lang_rc |
Enumerator | |
---|---|
EXT_LANG_RC_OK | |
EXT_LANG_RC_NOP | |
EXT_LANG_RC_ERROR |
Definition at line 164 of file extension.h.
enum extension_language |
Enumerator | |
---|---|
EXT_LANG_NONE | |
EXT_LANG_GDB | |
EXT_LANG_PYTHON | |
EXT_LANG_GUILE |
Definition at line 60 of file extension.h.
enum frame_filter_flag |
Enumerator | |
---|---|
PRINT_LEVEL | |
PRINT_FRAME_INFO | |
PRINT_ARGS | |
PRINT_LOCALS | |
PRINT_MORE_FRAMES | |
PRINT_HIDE |
Definition at line 87 of file extension.h.
enum ext_lang_bt_status apply_ext_lang_frame_filter | ( | frame_info_ptr | frame, |
frame_filter_flags | flags, | ||
enum ext_lang_frame_args | args_type, | ||
struct ui_out * | out, | ||
int | frame_low, | ||
int | frame_high | ||
) |
Definition at line 528 of file extension.c.
References EXT_LANG_BT_NO_FILTERS, extension_languages, flags, and status.
Referenced by backtrace_command_1(), mi_apply_ext_lang_frame_filter(), and mi_cmd_stack_list_frames().
char * apply_ext_lang_type_printers | ( | struct ext_lang_type_printers * | printers, |
struct type * | type | ||
) |
Definition at line 422 of file extension.c.
References EXT_LANG_RC_ERROR, EXT_LANG_RC_NOP, EXT_LANG_RC_OK, and extension_languages.
Referenced by typedef_hash_table::find_global_typedef().
int apply_ext_lang_val_pretty_printer | ( | struct value * | value, |
struct ui_file * | stream, | ||
int | recurse, | ||
const struct value_print_options * | options, | ||
const struct language_defn * | language | ||
) |
Definition at line 477 of file extension.c.
References EXT_LANG_RC_ERROR, EXT_LANG_RC_NOP, EXT_LANG_RC_OK, and extension_languages.
Referenced by common_val_print(), cp_print_value(), and value_print().
void auto_load_ext_lang_scripts_for_objfile | ( | struct objfile * | objfile | ) |
Definition at line 383 of file extension.c.
References auto_load_objfile_script(), ext_lang_auto_load_enabled(), extension_language_gdb, and extension_languages.
Referenced by load_auto_scripts_for_objfile().
int breakpoint_ext_lang_cond_says_stop | ( | struct breakpoint * | b | ) |
Definition at line 602 of file extension.c.
References EXT_LANG_BP_STOP_NO, EXT_LANG_BP_STOP_UNSET, and extension_languages.
Referenced by bpstat_check_breakpoint_conditions().
DEF_ENUM_FLAGS_TYPE | ( | enum | frame_filter_flag, |
frame_filter_flags | |||
) |
void eval_ext_lang_from_control_command | ( | struct command_line * | cmd | ) |
Definition at line 356 of file extension.c.
References command_line::control_type, extension_languages, and throw_ext_lang_unsupported().
Referenced by execute_control_command_1().
bool ext_lang_auto_load_enabled | ( | const struct extension_language_defn * | extlang | ) |
Definition at line 289 of file extension.c.
References extension_language_script_ops::auto_load_enabled, and extension_language_defn::script_ops.
Referenced by auto_load_ext_lang_scripts_for_objfile(), execute_script_contents(), and source_script_file().
const char * ext_lang_auto_load_suffix | ( | const struct extension_language_defn * | extlang | ) |
Definition at line 231 of file extension.c.
References extension_language_defn::auto_load_suffix.
Referenced by auto_load_objfile_script_1().
const char * ext_lang_capitalized_name | ( | const struct extension_language_defn * | extlang | ) |
Definition at line 215 of file extension.c.
References extension_language_defn::capitalized_name.
Referenced by gdbscm_set_breakpoint_stop_x(), local_setattro(), set_breakpoint_condition(), and throw_ext_lang_unsupported().
gdb::optional< std::string > ext_lang_colorize | ( | const std::string & | filename, |
const std::string & | contents | ||
) |
Definition at line 891 of file extension.c.
References extension_languages.
Referenced by source_cache::ensure().
gdb::optional< std::string > ext_lang_colorize_disasm | ( | const std::string & | content, |
gdbarch * | gdbarch | ||
) |
Definition at line 911 of file extension.c.
References extension_languages.
Referenced by gdb_disassembler::print_insn().
void ext_lang_initialization | ( | void | ) |
Definition at line 331 of file extension.c.
References extension_languages.
Referenced by captured_main_1().
int ext_lang_initialized_p | ( | const struct extension_language_defn * | extlang | ) |
Definition at line 159 of file extension.c.
References extension_language_ops::initialized, and extension_language_defn::ops.
Referenced by mi_cmd_list_features().
enum extension_language ext_lang_kind | ( | const struct extension_language_defn * | ) |
const char * ext_lang_name | ( | const struct extension_language_defn * | extlang | ) |
Definition at line 207 of file extension.c.
References extension_language_defn::name.
Referenced by auto_load_objfile_script_1(), execute_script_contents(), maybe_print_script_not_found_warning(), maybe_print_unsupported_script_warning(), and source_script_file().
objfile_script_executor_func * ext_lang_objfile_script_executor | ( | const struct extension_language_defn * | extlang | ) |
Definition at line 277 of file extension.c.
References extension_language_script_ops::objfile_script_executor, and extension_language_defn::script_ops.
Referenced by execute_script_contents().
objfile_script_sourcer_func * ext_lang_objfile_script_sourcer | ( | const struct extension_language_defn * | extlang | ) |
Definition at line 260 of file extension.c.
References extension_language_script_ops::objfile_script_sourcer, and extension_language_defn::script_ops.
Referenced by auto_load_objfile_script_1(), and source_script_file().
int ext_lang_present_p | ( | const struct extension_language_defn * | extlang | ) |
Definition at line 150 of file extension.c.
References extension_language_defn::script_ops.
Referenced by gdb_initfile_finder::gdb_initfile_finder(), and source_script_from_stream().
gdb::optional< int > ext_lang_print_insn | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | address, | ||
struct disassemble_info * | info | ||
) |
Definition at line 931 of file extension.c.
References extension_languages, and type::length().
Referenced by gdb_print_insn_1().
script_sourcer_func * ext_lang_script_sourcer | ( | const struct extension_language_defn * | extlang | ) |
Definition at line 243 of file extension.c.
References extension_language_defn::script_ops, and extension_language_script_ops::script_sourcer.
Referenced by source_script_from_stream().
const char * ext_lang_suffix | ( | const struct extension_language_defn * | extlang | ) |
Definition at line 223 of file extension.c.
References extension_language_defn::suffix.
const struct extension_language_defn * get_breakpoint_cond_ext_lang | ( | struct breakpoint * | b, |
enum extension_language | skip_lang | ||
) |
Definition at line 583 of file extension.c.
References extension_languages.
Referenced by gdbscm_set_breakpoint_stop_x(), local_setattro(), and set_breakpoint_condition().
const struct extension_language_defn * get_ext_lang_defn | ( | enum extension_language | lang | ) |
Definition at line 99 of file extension.c.
References EXT_LANG_GDB, EXT_LANG_NONE, extension_language_gdb, and extension_languages.
Referenced by gdbscm_set_breakpoint_stop_x(), local_setattro(), mi_cmd_list_features(), and source_section_scripts().
const struct extension_language_defn * get_ext_lang_of_file | ( | const char * | file | ) |
Definition at line 132 of file extension.c.
References extension_language_gdb, extension_languages, has_extension(), and extension_language_defn::suffix.
Referenced by gdb_initfile_finder::gdb_initfile_finder(), and source_script_from_stream().
void get_matching_xmethod_workers | ( | struct type * | type, |
const char * | method_name, | ||
std::vector< xmethod_worker_up > * | workers | ||
) |
Definition at line 834 of file extension.c.
References EXT_LANG_RC_ERROR, and extension_languages.
Referenced by find_method_list().
void preserve_ext_lang_values | ( | struct objfile * | objfile, |
htab_t | copied_types | ||
) |
Definition at line 563 of file extension.c.
References extension_languages.
Referenced by preserve_values().
void throw_ext_lang_unsupported | ( | const struct extension_language_defn * | extlang | ) |
Definition at line 174 of file extension.c.
References ext_lang_capitalized_name().
Referenced by eval_ext_lang_from_control_command(), and source_script_from_stream().
|
extern |
Definition at line 53 of file extension.c.
Referenced by auto_load_ext_lang_scripts_for_objfile(), get_ext_lang_defn(), get_ext_lang_of_file(), and info_auto_load_gdb_scripts().