39 error (
_(
"ABI doesn't define required function is_constructor_name"));
47 error (
_(
"ABI doesn't define required function is_destructor_name"));
55 error (
_(
"ABI doesn't define required function is_vtable_name"));
63 error (
_(
"ABI doesn't define required function is_operator_name"));
70 const struct value *val)
88 _(
"Cannot determine virtual baseclass offset " 89 "of incomplete object"));
111 struct type *ret = NULL;
134 error (
_(
"GDB does not support pointers to methods on this target"));
142 error (
_(
"GDB does not support pointers to methods on this target"));
151 error (
_(
"GDB does not support pointers to methods on this target"));
166 struct value *method_ptr)
169 error (
_(
"GDB does not support pointers to methods on this target"));
179 error (
_(
"GDB cannot print the vtable on this target"));
189 error (
_(
"GDB cannot find the typeid on this target"));
199 error (
_(
"GDB cannot find the type for 'typeid' on this target"));
209 error (
_(
"GDB cannot find the type from a std::type_info on this target"));
219 error (
_(
"GDB cannot find the type name " 220 "from a std::type_info on this target"));
254 _(
"Too many C++ ABIs, please increase " 255 "CP_ABI_MAX in cp-abi.c"));
267 char *new_longname, *new_doc;
272 _(
"Cannot find C++ ABI \"%s\" to set it as auto default."),
286 new_doc =
xstrprintf (
"Automatically selected; currently \"%s\"",
319 uiout->
text (
"The available C++ ABIs are:\n");
329 padcount = 16 - 2 - strlen (
cp_abis[i]->shortname);
332 pad[--padcount] =
' ';
353 error (
_(
"Could not find \"%s\" in ABI list"), args);
361 const char *
text,
const char *word)
363 static const char **cp_abi_names;
365 if (cp_abi_names == NULL)
371 cp_abi_names[i] =
cp_abis[i]->shortname;
372 cp_abi_names[i] = NULL;
385 uiout->
text (
"The currently selected C++ ABI is \"");
388 uiout->
text (
"\" (");
390 uiout->
text (
").\n");
402 Set the ABI used for inspecting C++ objects.\n\ 403 \"set cp-abi\" with no arguments will list the available ABIs."),
408 _(
"Show the ABI used for inspecting C++ objects."),
struct value * value_virtual_fn_field(struct value **arg1p, struct fn_field *f, int j, struct type *type, int offset)
struct type * value_rtti_type(struct value *v, int *full, LONGEST *top, int *using_enc)
static struct cp_abi_ops current_cp_abi
int(* is_vtable_name)(const char *name)
void field_string(const char *fldname, const char *string)
int cp_pass_by_reference(struct type *type)
static int switch_to_cp_abi(const char *short_name)
void complete_on_enum(completion_tracker &tracker, const char *const *enumlist, const char *text, const char *word)
void internal_error(const char *file, int line, const char *fmt,...)
void set_cp_abi_as_auto_default(const char *short_name)
struct cmd_list_element * add_cmd(const char *name, enum command_class theclass, const char *doc, struct cmd_list_element **list)
int baseclass_offset(struct type *type, int index, const gdb_byte *valaddr, LONGEST embedded_offset, CORE_ADDR address, const struct value *val)
struct type * cplus_type_from_type_info(struct value *value)
int cplus_method_ptr_size(struct type *to_type)
int(* method_ptr_size)(struct type *)
enum ctor_kinds(* is_constructor_name)(const char *name)
void(* print_vtable)(struct value *)
void text(const char *string)
enum dtor_kinds(* is_destructor_name)(const char *name)
struct cmd_list_element * setlist
struct value *(* method_ptr_to_value)(struct value **, struct value *)
#define CATCH(EXCEPTION, MASK)
int register_cp_abi(struct cp_abi_ops *abi)
void cplus_make_method_ptr(struct type *type, gdb_byte *contents, CORE_ADDR value, int is_virtual)
enum ctor_kinds is_constructor_name(const char *name)
struct type *(* get_type_from_type_info)(struct value *value)
struct value *(* get_typeid)(struct value *value)
void set_cmd_completer(struct cmd_list_element *cmd, completer_ftype *completer)
static struct cp_abi_ops auto_cp_abi
static void show_cp_abi_cmd(const char *args, int from_tty)
struct cmd_list_element * showlist
static void set_cp_abi_cmd(const char *args, int from_tty)
struct type * cplus_typeid_type(struct gdbarch *gdbarch)
int is_vtable_name(const char *name)
enum dtor_kinds is_destructor_name(const char *name)
int(* baseclass_offset)(struct type *type, int index, const bfd_byte *valaddr, LONGEST embedded_offset, CORE_ADDR address, const struct value *val)
static void cp_abi_completer(struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word)
int is_operator_name(const char *name)
char * xstrprintf(const char *format,...)
static struct cp_abi_ops * find_cp_abi(const char *short_name)
void(* print_method_ptr)(const gdb_byte *contents, struct type *type, struct ui_file *stream)
std::string cplus_typename_from_type_info(struct value *value)
void throw_exception(struct gdb_exception exception)
int(* is_operator_name)(const char *name)
struct type *(* rtti_type)(struct value *v, int *full, LONGEST *top, int *using_enc)
void cplus_print_method_ptr(const gdb_byte *contents, struct type *type, struct ui_file *stream)
std::string(* get_typename_from_type_info)(struct value *value)
struct value * cplus_method_ptr_to_value(struct value **this_p, struct value *method_ptr)
static void list_cp_abis(int from_tty)
int(* pass_by_reference)(struct type *type)
static int ignore(struct target_ops *ops, struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
void(* make_method_ptr)(struct type *, gdb_byte *, CORE_ADDR, int)
void _initialize_cp_abi(void)
void cplus_print_vtable(struct value *value)
static struct cp_abi_ops * cp_abis[CP_ABI_MAX]
void error(const char *fmt,...)
void throw_error(enum errors error, const char *fmt,...)
struct value *(* virtual_fn_field)(struct value **arg1p, struct fn_field *f, int j, struct type *type, int offset)
CORE_ADDR(* skip_trampoline)(struct frame_info *, CORE_ADDR)
struct type *(* get_typeid_type)(struct gdbarch *gdbarch)
struct value * cplus_typeid(struct value *value)
CORE_ADDR cplus_skip_trampoline(struct frame_info *frame, CORE_ADDR stop_pc)