|
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 struct xmethod_worker * | xmethod_worker_ptr |
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_COMPLETED = 2, EXT_LANG_BT_NO_FILTERS = 3 } |
| enum | frame_filter_flags { PRINT_LEVEL = 1, PRINT_FRAME_INFO = 2, PRINT_ARGS = 4, PRINT_LOCALS = 8 } |
| 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 } |
| enum | ext_lang_bp_stop { EXT_LANG_BP_STOP_UNSET, EXT_LANG_BP_STOP_NO, EXT_LANG_BP_STOP_YES } |
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 41 of file extension.h.
| typedef struct xmethod_worker* xmethod_worker_ptr |
Definition at line 164 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 129 of file extension.h.
| enum ext_lang_bt_status |
| Enumerator | |
|---|---|
| EXT_LANG_BT_ERROR | |
| EXT_LANG_BT_OK | |
| EXT_LANG_BT_COMPLETED | |
| EXT_LANG_BT_NO_FILTERS | |
Definition at line 69 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 | |
Definition at line 108 of file extension.h.
| enum extension_language |
| Enumerator | |
|---|---|
| EXT_LANG_NONE | |
| EXT_LANG_GDB | |
| EXT_LANG_PYTHON | |
| EXT_LANG_GUILE | |
Definition at line 59 of file extension.h.
| enum frame_filter_flags |
| Enumerator | |
|---|---|
| PRINT_LEVEL | |
| PRINT_FRAME_INFO | |
| PRINT_ARGS | |
| PRINT_LOCALS | |
Definition at line 90 of file extension.h.
| enum ext_lang_bt_status apply_ext_lang_frame_filter | ( | struct frame_info * | frame, |
| int | flags, | ||
| enum ext_lang_frame_args | args_type, | ||
| struct ui_out * | out, | ||
| int | frame_low, | ||
| int | frame_high | ||
| ) |
Definition at line 555 of file extension.c.
References ALL_ENABLED_EXTENSION_LANGUAGES, extension_language_ops::apply_frame_filter, EXT_LANG_BT_NO_FILTERS, extension_language_defn::ops, 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 * | , |
| struct type * | |||
| ) |
Definition at line 430 of file extension.c.
References ALL_ENABLED_EXTENSION_LANGUAGES, extension_language_ops::apply_type_printers, EXT_LANG_RC_ERROR, EXT_LANG_RC_NOP, EXT_LANG_RC_OK, gdb_assert, gdb_assert_not_reached, and extension_language_defn::ops.
Referenced by find_global_typedef().
| int apply_ext_lang_val_pretty_printer | ( | struct type * | type, |
| const gdb_byte * | valaddr, | ||
| int | embedded_offset, | ||
| CORE_ADDR | address, | ||
| struct ui_file * | stream, | ||
| int | recurse, | ||
| const struct value * | val, | ||
| const struct value_print_options * | options, | ||
| const struct language_defn * | language | ||
| ) |
Definition at line 498 of file extension.c.
References ALL_ENABLED_EXTENSION_LANGUAGES, extension_language_ops::apply_val_pretty_printer, EXT_LANG_RC_ERROR, EXT_LANG_RC_NOP, EXT_LANG_RC_OK, gdb_assert_not_reached, and extension_language_defn::ops.
Referenced by cp_print_value(), val_print(), and value_print().
| void auto_load_ext_lang_scripts_for_objfile | ( | struct objfile * | ) |
Definition at line 382 of file extension.c.
References ALL_ENABLED_EXTENSION_LANGUAGES, auto_load_objfile_script(), ext_lang_auto_load_enabled(), and extension_language_gdb.
Referenced by load_auto_scripts_for_objfile().
| int breakpoint_ext_lang_cond_says_stop | ( | struct breakpoint * | ) |
Definition at line 634 of file extension.c.
References ALL_ENABLED_EXTENSION_LANGUAGES, extension_language_ops::breakpoint_cond_says_stop, EXT_LANG_BP_STOP_NO, EXT_LANG_BP_STOP_UNSET, gdb_assert, and extension_language_defn::ops.
Referenced by bpstat_check_breakpoint_conditions().
| struct xmethod_worker* clone_xmethod_worker | ( | struct xmethod_worker * | ) |
Definition at line 884 of file extension.c.
References extension_language_ops::clone_xmethod_worker_data, xmethod_worker::data, xmethod_worker::extlang, gdb_assert, new_xmethod_worker(), and extension_language_defn::ops.
Referenced by find_overload_match().
| DEF_VEC_P | ( | xmethod_worker_ptr | ) |
| void eval_ext_lang_from_control_command | ( | struct command_line * | cmd | ) |
Definition at line 352 of file extension.c.
References ALL_EXTENSION_LANGUAGES, extension_language_defn::cli_control_type, command_line::control_type, extension_language_ops::eval_from_control_command, gdb_assert_not_reached, extension_language_defn::ops, and throw_ext_lang_unsupported().
Referenced by execute_control_command().
| int ext_lang_auto_load_enabled | ( | const struct extension_language_defn * | ) |
Definition at line 309 of file extension.c.
References extension_language_script_ops::auto_load_enabled, gdb_assert, 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 * | ) |
Definition at line 250 of file extension.c.
References extension_language_defn::auto_load_suffix.
Referenced by _initialize_auto_load(), and auto_load_objfile_script_1().
| const char* ext_lang_capitalized_name | ( | const struct extension_language_defn * | ) |
Definition at line 234 of file extension.c.
References extension_language_defn::capitalized_name.
Referenced by condition_command(), gdbscm_set_breakpoint_stop_x(), local_setattro(), and throw_ext_lang_unsupported().
| int ext_lang_initialized_p | ( | const struct extension_language_defn * | ) |
Definition at line 178 of file extension.c.
References gdb_assert, 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 * | ) |
Definition at line 226 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 * | ) |
Definition at line 297 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 * | ) |
Definition at line 279 of file extension.c.
References gdb_assert, 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 * | ) |
Definition at line 169 of file extension.c.
References extension_language_defn::script_ops.
Referenced by source_script_from_stream().
| script_sourcer_func* ext_lang_script_sourcer | ( | const struct extension_language_defn * | ) |
Definition at line 262 of file extension.c.
References gdb_assert, 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 * | ) |
Definition at line 242 of file extension.c.
References extension_language_defn::suffix.
| void finish_ext_lang_initialization | ( | void | ) |
Definition at line 328 of file extension.c.
References ALL_ENABLED_EXTENSION_LANGUAGES, extension_language_ops::finish_initialization, and extension_language_defn::ops.
Referenced by gdb_init().
| void free_ext_lang_type_printers | ( | struct ext_lang_type_printers * | ) |
Definition at line 466 of file extension.c.
References ALL_ENABLED_EXTENSION_LANGUAGES, extension_language_ops::free_type_printers, extension_language_defn::ops, and xfree().
Referenced by do_free_global_table().
| void free_xmethod_worker | ( | struct xmethod_worker * | ) |
Definition at line 1009 of file extension.c.
References xmethod_worker::data, xmethod_worker::extlang, extension_language_ops::free_xmethod_worker_data, gdb_assert, extension_language_defn::ops, and xfree().
Referenced by free_xmethod_worker_vec(), and value_free().
| void free_xmethod_worker_vec | ( | void * | vec | ) |
Definition at line 1020 of file extension.c.
References free_xmethod_worker(), VEC(), VEC_free, and VEC_iterate.
Referenced by find_overload_match(), and VEC().
| const struct extension_language_defn* get_breakpoint_cond_ext_lang | ( | struct breakpoint * | b, |
| enum extension_language | skip_lang | ||
| ) |
Definition at line 613 of file extension.c.
References ALL_ENABLED_EXTENSION_LANGUAGES, extension_language_ops::breakpoint_has_cond, extension_language_defn::language, and extension_language_defn::ops.
Referenced by condition_command(), gdbscm_set_breakpoint_stop_x(), and local_setattro().
| const struct extension_language_defn* get_ext_lang_defn | ( | enum extension_language | lang | ) |
Definition at line 115 of file extension.c.
References ALL_EXTENSION_LANGUAGES, EXT_LANG_GDB, EXT_LANG_NONE, extension_language_gdb, gdb_assert, gdb_assert_not_reached, and extension_language_defn::language.
Referenced by _initialize_auto_load(), 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 151 of file extension.c.
References ALL_EXTENSION_LANGUAGES, has_extension(), and extension_language_defn::suffix.
Referenced by source_script_from_stream().
Referenced by find_method_list().
| struct type** get_xmethod_arg_types | ( | struct xmethod_worker * | , |
| int * | |||
| ) |
Definition at line 948 of file extension.c.
References _, extension_language_defn::capitalized_name, error(), EXT_LANG_RC_ERROR, xmethod_worker::extlang, gdb_assert, extension_language_ops::get_xmethod_arg_types, and extension_language_defn::ops.
Referenced by find_oload_champ().
| struct type* get_xmethod_result_type | ( | struct xmethod_worker * | , |
| struct value * | object, | ||
| struct value ** | args, | ||
| int | nargs | ||
| ) |
Definition at line 971 of file extension.c.
References _, extension_language_defn::capitalized_name, error(), EXT_LANG_RC_ERROR, xmethod_worker::extlang, gdb_assert, extension_language_ops::get_xmethod_arg_types, extension_language_ops::get_xmethod_result_type, and extension_language_defn::ops.
Referenced by result_type_of_xmethod().
| struct value* invoke_xmethod | ( | struct xmethod_worker * | , |
| struct value * | , | ||
| struct value ** | , | ||
| int | nargs | ||
| ) |
Definition at line 997 of file extension.c.
References xmethod_worker::extlang, gdb_assert, extension_language_ops::invoke_xmethod, and extension_language_defn::ops.
Referenced by call_xmethod().
| struct xmethod_worker* new_xmethod_worker | ( | const struct extension_language_defn * | extlang, |
| void * | data | ||
| ) |
Definition at line 864 of file extension.c.
References xmethod_worker::data, xmethod_worker::extlang, and xmethod_worker::value.
Referenced by clone_xmethod_worker(), and new_python_xmethod_worker().
| void preserve_ext_lang_values | ( | struct objfile * | , |
| htab_t | copied_types | ||
| ) |
Definition at line 591 of file extension.c.
References ALL_ENABLED_EXTENSION_LANGUAGES, extension_language_defn::ops, and extension_language_ops::preserve_values.
Referenced by preserve_values().
| struct ext_lang_type_printers* start_ext_lang_type_printers | ( | void | ) |
Definition at line 408 of file extension.c.
References ALL_ENABLED_EXTENSION_LANGUAGES, extension_language_defn::ops, and extension_language_ops::start_type_printers.
Referenced by create_global_typedef_table().
| void throw_ext_lang_unsupported | ( | const struct extension_language_defn * | ) |
Definition at line 193 of file extension.c.
References _, error(), and ext_lang_capitalized_name().
Referenced by eval_ext_lang_from_control_command(), and source_script_from_stream().
| typedef VEC | ( | xmethod_worker_ptr | ) |
Definition at line 904 of file extension.c.
References _, ALL_ENABLED_EXTENSION_LANGUAGES, extension_language_defn::capitalized_name, error(), EXT_LANG_RC_ERROR, free_xmethod_worker_vec(), extension_language_ops::get_matching_xmethod_workers, extension_language_defn::ops, VEC(), VEC_free, and VEC_merge.
Referenced by free_xmethod_worker_vec(), and VEC().
| const struct extension_language_defn extension_language_gdb |
Definition at line 68 of file extension.c.
Referenced by auto_load_ext_lang_scripts_for_objfile(), get_ext_lang_defn(), and info_auto_load_gdb_scripts().
1.8.10