GDB (xrefs)

Functions
/tmp/gdb-8.1/gdb/objc-lang.h File Reference
`#include "cp-support.h"`

Go to the source code of this file.

## Functions
CORE_ADDR | lookup_objc_class (struct gdbarch *gdbarch, const char *classname)
CORE_ADDR | lookup_child_selector (struct gdbarch *gdbarch, const char *methodname)
char * | objc_demangle (const char *mangled, int options)
int | find_objc_msgcall (CORE_ADDR pc, CORE_ADDR *new_pc)
const char * | find_imps (const char *method, VEC(const_char_ptr) **symbol_names)
struct value * | value_nsstring (struct gdbarch *gdbarch, char *ptr, int len)
void | start_msglist (void)
void | add_msglist (struct stoken *str, int addcolon)
int | end_msglist (struct parser_state *)
struct symbol * | lookup_struct_typedef (const char *name, const struct block *block, int noerr)

## Function Documentation

## ◆ add_msglist()

void add_msglist | ( | struct stoken * | str,
|  | int | addcolon
| ) |  |

Definition at line 448 of file objc-lang.c.

References stoken::length, msglist_len, msglist_sel, stoken::ptr, xfree(), and xmalloc().

Referenced by yyparse().

## ◆ end_msglist()

int end_msglist | ( | struct parser_state * |  | ) |

Definition at line 486 of file objc-lang.c.

References _, error(), lookup_child_selector(), selname::msglist_len, msglist_len, selname::msglist_sel, msglist_sel, selname::next, parse_gdbarch, cleanup_check::ps, selname_chain, write_exp_elt_longcst(), and xfree().

Referenced by yyparse().

## ◆ find_imps()

const char* find_imps | ( | const char * | method,
|  | VEC(const_char_ptr) ** | symbol_names
| ) |  |

Definition at line 1130 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(), selector, block_symbol::symbol, SYMBOL_NATURAL_NAME, uniquify_strings(), VAR_DOMAIN, VEC_empty, and VEC_safe_push.

Referenced by decode_objc(), and find_function_symbols().

## ◆ find_objc_msgcall()

int find_objc_msgcall | ( | CORE_ADDR | pc,
|  | CORE_ADDR * | new_pc
| ) |  |

Definition at line 1336 of file objc-lang.c.

References find_objc_msgcall_submethod(), find_objc_msgsend(), methcalls, and nmethcalls.

Referenced by objc_skip_trampoline().

## ◆ lookup_child_selector()

CORE_ADDR lookup_child_selector | ( | struct gdbarch * | gdbarch,
|  | const char * | methodname
| ) |  |

Definition at line 139 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().

## ◆ lookup_objc_class()

CORE_ADDR lookup_objc_class | ( | struct gdbarch * | gdbarch,
|  | const char * | classname
| ) |  |

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(), VEC(), and yyparse().

## ◆ lookup_struct_typedef()

struct symbol* lookup_struct_typedef | ( | const char * | name,
|  | const struct block * | block,
|  | int | noerr
| ) |  |

Definition at line 84 of file objc-lang.c.

References _, error(), lookup_symbol(), name, STRUCT_DOMAIN, block_symbol::symbol, SYMBOL_TYPE, TYPE_CODE, and TYPE_CODE_STRUCT.

Referenced by value_nsstring(), and VEC().

## ◆ objc_demangle()

char* objc_demangle | ( | const char * | mangled,
|  | int | options
| ) |  |

Definition at line 223 of file objc-lang.c.

References xfree(), and xmalloc().

Referenced by objc_sniff_from_mangled_name().

## ◆ start_msglist()

void start_msglist | ( | void |  | ) |

Definition at line 434 of file objc-lang.c.

References selname::msglist_len, msglist_len, selname::msglist_sel, msglist_sel, selname::next, selname_chain, xmalloc(), and XNEW.

Referenced by yyparse().

## ◆ value_nsstring()

struct value* value_nsstring | ( | struct gdbarch * | gdbarch,
|  | char * | ptr,
|  | int | len
| ) |  |

Definition at line 168 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().