GDB (xrefs)
|
#include "defs.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"
#include "parser-defs.h"
#include "language.h"
#include "varobj.h"
#include "c-lang.h"
#include "objc-lang.h"
#include "complaints.h"
#include "value.h"
#include "symfile.h"
#include "objfiles.h"
#include "target.h"
#include "gdbcore.h"
#include "gdbcmd.h"
#include "frame.h"
#include "gdb_regex.h"
#include "regcache.h"
#include "block.h"
#include "infcall.h"
#include "valprint.h"
#include "cli/cli-utils.h"
#include <ctype.h>
Go to the source code of this file.
Classes | |
struct | objc_object |
struct | objc_class |
struct | objc_super |
struct | objc_method |
struct | selname |
struct | objc_methcall |
struct | objc_submethod_helper_data |
Macros | |
#define | nmethcalls (sizeof (methcalls) / sizeof (methcalls[0])) |
Variables | |
static const struct objfile_data * | objc_objfile_data |
static const struct op_print | objc_op_print_tab [] |
const struct language_defn | objc_language_defn |
static int | msglist_len |
static struct selname * | selname_chain |
static char * | msglist_sel |
static struct objc_methcall | methcalls [] |
initialize_file_ftype | _initialize_objc_language |
initialize_file_ftype | _initialize_objc_lang |
Definition at line 1247 of file objc-lang.c.
Referenced by find_objc_msgcall(), and find_objc_msgsend().
void _initialize_objc_lang | ( | void | ) |
Definition at line 1609 of file objc-lang.c.
References objc_objfile_data.
void _initialize_objc_language | ( | void | ) |
Definition at line 1365 of file objc-lang.c.
References _, add_com(), add_com_alias(), add_info(), add_language(), class_vars, classes_info(), print_object_command(), and selectors_info().
Definition at line 429 of file objc-lang.c.
References len, stoken::length, msglist_len, msglist_sel, stoken::ptr, xfree(), and xmalloc().
Referenced by yyparse().
|
static |
Definition at line 708 of file objc-lang.c.
References _, ALL_MSYMBOLS, begin_line(), compare_classes(), error(), MSYMBOL_NATURAL_NAME, name, printf_filtered(), puts_filtered_tabular(), qsort, QUIT, re_comp(), specialcmp(), and SYMBOL_NATURAL_NAME.
Referenced by _initialize_objc_language().
Definition at line 685 of file objc-lang.c.
References _, error(), specialcmp(), and SYMBOL_PRINT_NAME.
Referenced by classes_info().
Definition at line 519 of file objc-lang.c.
References _, error(), specialcmp(), and SYMBOL_PRINT_NAME.
Referenced by selectors_info().
int end_msglist | ( | struct parser_state * | ps | ) |
Definition at line 467 of file objc-lang.c.
References _, error(), lookup_child_selector(), selname::msglist_len, msglist_len, selname::msglist_sel, msglist_sel, selname::next, parse_gdbarch, selname_chain, write_exp_elt_longcst(), and xfree().
Referenced by yyparse().
|
static |
Definition at line 1491 of file objc-lang.c.
References find_implementation_from_class(), objc_object::isa, and read_objc_object().
Referenced by resolve_msgsend(), and resolve_msgsend_stret().
|
static |
Definition at line 1443 of file objc-lang.c.
References gdbarch_byte_order(), objc_method::imp, objc_class::methods, objc_method::name, read_memory_unsigned_integer(), read_objc_class(), read_objc_methlist_method(), read_objc_methlist_nmethods(), and objc_class::super_class.
Referenced by find_implementation(), resolve_msgsend_super(), and resolve_msgsend_super_stret().
const char* find_imps | ( | const char * | method, |
VEC(const_char_ptr)** | symbol_names | ||
) |
Definition at line 1112 of file objc-lang.c.
References find_methods(), gdb_assert, lookup_minimal_symbol(), lookup_symbol(), bound_minimal_symbol::minsym, MSYMBOL_NATURAL_NAME, parse_method(), parse_selector(), SYMBOL_NATURAL_NAME, uniquify_strings(), VAR_DOMAIN, VEC_empty, and VEC_safe_push.
Referenced by decode_objc(), and find_function_symbols().
|
static |
Definition at line 955 of file objc-lang.c.
References ALL_OBJFILE_MSYMBOLS, ALL_OBJFILES, gdb_assert, MSYMBOL_NATURAL_NAME, objc_objfile_data, objfile::objfile_obstack, parse_method(), QUIT, VEC_safe_push, and xrealloc().
Referenced by find_imps().
Definition at line 1338 of file objc-lang.c.
References find_objc_msgcall_submethod(), find_objc_msgsend(), and nmethcalls.
Referenced by objc_skip_trampoline().
|
static |
Definition at line 1317 of file objc-lang.c.
References catch_errors(), objc_submethod_helper_data::f, find_objc_msgcall_submethod_helper(), objc_submethod_helper_data::new_pc, objc_submethod_helper_data::pc, and RETURN_MASK_ALL.
Referenced by find_objc_msgcall().
|
static |
Definition at line 1305 of file objc-lang.c.
References objc_submethod_helper_data::f, objc_submethod_helper_data::new_pc, and objc_submethod_helper_data::pc.
Referenced by find_objc_msgcall_submethod().
|
static |
Definition at line 1257 of file objc-lang.c.
References objc_methcall::begin, BMSYMBOL_VALUE_ADDRESS, objc_methcall::end, lookup_bound_minimal_symbol(), minimal_symbol_upper_bound(), name, objc_methcall::name, and nmethcalls.
Referenced by find_objc_msgcall().
Definition at line 138 of file objc-lang.c.
References _, builtin_type::builtin_char, builtin_type(), call_function_by_hand(), complaint(), find_function_in_inferior(), lookup_minimal_symbol(), symfile_complaints, target_has_execution, value_as_long(), value_coerce_array(), and value_string().
Referenced by end_msglist(), evaluate_subexp_standard(), and value_nsstring().
Definition at line 109 of file objc-lang.c.
References _, builtin_type::builtin_char, builtin_type(), call_function_by_hand(), complaint(), find_function_in_inferior(), lookup_minimal_symbol(), symfile_complaints, target_has_execution, value_as_long(), value_coerce_array(), and value_string().
Referenced by value_nsstring(), and yyparse().
Definition at line 84 of file objc-lang.c.
References _, error(), lookup_symbol(), STRUCT_DOMAIN, SYMBOL_TYPE, TYPE_CODE, and TYPE_CODE_STRUCT.
Referenced by value_nsstring().
Definition at line 221 of file objc-lang.c.
References xfree(), and xmalloc().
Referenced by symbol_find_demangled_name().
|
static |
Definition at line 291 of file objc-lang.c.
References find_objc_msgcall(), gdbarch_skip_trampoline_code(), and get_frame_arch().
|
static |
Definition at line 859 of file objc-lang.c.
References gdb_assert, and skip_spaces().
Referenced by find_imps(), and find_methods().
|
static |
Definition at line 807 of file objc-lang.c.
References gdb_assert, and skip_spaces().
Referenced by find_imps().
|
static |
Definition at line 1169 of file objc-lang.c.
References _, builtin_type::builtin_data_ptr, call_function_by_hand(), do_cleanups(), error(), EVAL_NORMAL, evaluate_subexp(), find_function_in_inferior(), free_current_contents(), expression::gdbarch, make_cleanup(), parse_expression(), printf_filtered(), QUIT, read_memory(), and value_as_long().
Referenced by _initialize_objc_language().
|
static |
Definition at line 1424 of file objc-lang.c.
References objc_class::cache, gdbarch_byte_order(), objc_class::info, objc_class::instance_size, objc_class::isa, objc_class::ivars, objc_class::methods, objc_class::name, objc_class::protocols, read_memory_unsigned_integer(), objc_class::super_class, and objc_class::version.
Referenced by find_implementation_from_class().
|
static |
Definition at line 1397 of file objc-lang.c.
References gdb_assert, read_objc_methlist_nmethods(), and read_objc_method().
Referenced by find_implementation_from_class().
|
static |
Definition at line 1389 of file objc-lang.c.
References gdbarch_byte_order(), and read_memory_unsigned_integer().
Referenced by find_implementation_from_class(), and read_objc_methlist_method().
|
static |
Definition at line 1378 of file objc-lang.c.
References gdbarch_byte_order(), objc_method::imp, objc_method::name, read_memory_unsigned_integer(), and objc_method::types.
Referenced by read_objc_methlist_method().
|
static |
Definition at line 1405 of file objc-lang.c.
References gdbarch_byte_order(), and read_memory_unsigned_integer().
Referenced by find_implementation().
|
static |
Definition at line 1414 of file objc-lang.c.
References gdbarch_byte_order(), read_memory_unsigned_integer(), objc_super::receiver, and objc_super::theclass.
Referenced by resolve_msgsend_super(), and resolve_msgsend_super_stret().
Definition at line 1506 of file objc-lang.c.
References builtin_type::builtin_func_ptr, builtin_type(), find_implementation(), gdbarch_fetch_pointer_argument(), get_current_frame(), and get_frame_arch().
Definition at line 1528 of file objc-lang.c.
References builtin_type::builtin_func_ptr, builtin_type(), find_implementation(), gdbarch_fetch_pointer_argument(), get_current_frame(), and get_frame_arch().
Definition at line 1550 of file objc-lang.c.
References builtin_type::builtin_func_ptr, builtin_type(), find_implementation_from_class(), gdbarch_fetch_pointer_argument(), get_current_frame(), get_frame_arch(), read_objc_super(), and objc_super::theclass.
Definition at line 1578 of file objc-lang.c.
References builtin_type::builtin_func_ptr, builtin_type(), find_implementation_from_class(), gdbarch_fetch_pointer_argument(), get_current_frame(), get_frame_arch(), read_objc_super(), and objc_super::theclass.
|
static |
Definition at line 546 of file objc-lang.c.
References _, ALL_MSYMBOLS, begin_line(), compare_selectors(), complaint(), error(), MSYMBOL_NATURAL_NAME, name, printf_filtered(), puts_filtered_tabular(), qsort, QUIT, re_comp(), specialcmp(), SYMBOL_NATURAL_NAME, and symfile_complaints.
Referenced by _initialize_objc_language().
Definition at line 496 of file objc-lang.c.
Referenced by classes_info(), compare_classes(), compare_selectors(), and selectors_info().
void start_msglist | ( | void | ) |
Definition at line 414 of file objc-lang.c.
References selname::msglist_len, msglist_len, selname::msglist_sel, msglist_sel, selname::next, selname_chain, and xmalloc().
Referenced by yyparse().
|
static |
Definition at line 1052 of file objc-lang.c.
References compare_strings(), qsort, VEC_address, VEC_empty, VEC_iterate, VEC_length, VEC_replace, and VEC_truncate.
Referenced by find_imps().
Definition at line 167 of file objc-lang.c.
References _, builtin_type::builtin_char, builtin_type::builtin_data_ptr, builtin_type::builtin_long, builtin_type(), call_function_by_hand(), deprecated_set_value_type(), error(), find_function_in_inferior(), lookup_child_selector(), lookup_minimal_symbol(), lookup_objc_class(), lookup_pointer_type(), lookup_struct_typedef(), SYMBOL_TYPE, target_has_execution, type, value_coerce_array(), value_from_longest(), and value_string().
Referenced by evaluate_subexp_standard().
initialize_file_ftype _initialize_objc_lang |
initialize_file_ftype _initialize_objc_language |
|
static |
Definition at line 1238 of file objc-lang.c.
|
static |
Definition at line 409 of file objc-lang.c.
Referenced by add_msglist(), end_msglist(), and start_msglist().
|
static |
Definition at line 411 of file objc-lang.c.
Referenced by add_msglist(), end_msglist(), and start_msglist().
const struct language_defn objc_language_defn |
Definition at line 353 of file objc-lang.c.
|
static |
Definition at line 77 of file objc-lang.c.
Referenced by _initialize_objc_lang(), and find_methods().
Definition at line 319 of file objc-lang.c.
|
static |
Definition at line 410 of file objc-lang.c.
Referenced by end_msglist(), and start_msglist().