GDB (xrefs)

Classes | Functions | Variables
/tmp/gdb-8.1/gdb/typeprint.h File Reference

Go to the source code of this file.

## Classes
struct | print_offset_data
struct | type_print_options

## Functions
void | recursively_update_typedef_hash (struct typedef_hash_table *, struct type *)
void | add_template_parameters (struct typedef_hash_table *, struct type *)
struct typedef_hash_table * | create_typedef_hash (void)
void | free_typedef_hash (struct typedef_hash_table *)
struct cleanup * | make_cleanup_free_typedef_hash (struct typedef_hash_table *)
struct typedef_hash_table * | copy_typedef_hash (struct typedef_hash_table *)
const char * | find_typedef_in_hash (const struct type_print_options *, struct type *)
void | print_type_scalar (struct type *type, LONGEST, struct ui_file *)
void | c_type_print_varspec_suffix (struct type *, struct ui_file *, int, int, int, const struct type_print_options *)
void | c_type_print_args (struct type *, struct ui_file *, int, enum language, const struct type_print_options *)
void | type_print_unknown_return_type (struct ui_file *stream)
void | error_unknown_type (const char *sym_print_name)
void | val_print_not_allocated (struct ui_file *stream)
void | val_print_not_associated (struct ui_file *stream)

## Variables
const struct type_print_options | type_print_raw_options

## Function Documentation

## ◆ add_template_parameters()

void add_template_parameters | ( | struct typedef_hash_table * | ,
|  | struct type * |
| ) |  |

Definition at line 135 of file typeprint.c.

References LOC_TYPEDEF, decl_field::name, typedef_hash_table::storage, SYMBOL_CLASS, SYMBOL_LINKAGE_NAME, SYMBOL_TYPE, typedef_hash_table::table, decl_field::type, TYPE_N_TEMPLATE_ARGUMENTS, and TYPE_TEMPLATE_ARGUMENT.

Referenced by c_type_print_base_struct_union().

## ◆ c_type_print_args()

void c_type_print_args | ( | struct type * | ,
|  | struct ui_file * | ,
|  | int | ,
|  | enum | language,
|  | const struct type_print_options * |
| ) |  |

## ◆ c_type_print_varspec_suffix()

void c_type_print_varspec_suffix | ( | struct type * | ,
|  | struct ui_file * | ,
|  | int | ,
|  | int | ,
|  | int | ,
|  | const struct type_print_options * |
| ) |  |

Definition at line 719 of file c-typeprint.c.

References _, c_type_print_args(), c_type_print_varspec_suffix(), current_language, error(), flags, fprintf_filtered(), get_array_bounds(), language_defn::la_language, plongest(), PROP_LOCEXPR, PROP_LOCLIST, QUIT, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_BOOL, TYPE_CODE_CHAR, TYPE_CODE_COMPLEX, TYPE_CODE_DECFLOAT, TYPE_CODE_ENUM, TYPE_CODE_ERROR, TYPE_CODE_FLAGS, TYPE_CODE_FLT, TYPE_CODE_FUNC, TYPE_CODE_INT, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD, TYPE_CODE_METHODPTR, TYPE_CODE_NAMESPACE, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, TYPE_CODE_RVALUE_REF, TYPE_CODE_SET, TYPE_CODE_STRING, TYPE_CODE_STRUCT, TYPE_CODE_TYPEDEF, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_CODE_VOID, TYPE_HIGH_BOUND_KIND, TYPE_INDEX_TYPE, TYPE_NAME, TYPE_TARGET_TYPE, and TYPE_VECTOR.

Referenced by c_print_type_1(), and c_type_print_varspec_suffix().

## ◆ copy_typedef_hash()

struct typedef_hash_table* copy_typedef_hash | ( | struct typedef_hash_table * |  | ) |

Definition at line 223 of file typeprint.c.

References copy_typedef_hash_element(), create_typedef_hash(), and typedef_hash_table::table.

Referenced by c_type_print_base_struct_union().

## ◆ create_typedef_hash()

struct typedef_hash_table* create_typedef_hash | ( | void |  | ) |

Definition at line 164 of file typeprint.c.

References eq_typedef_field(), hash_typedef_field(), typedef_hash_table::storage, typedef_hash_table::table, xcalloc(), xfree(), and XNEW.

Referenced by c_type_print_base_struct_union(), copy_typedef_hash(), and create_global_typedef_table().

## ◆ error_unknown_type()

void error_unknown_type | ( | const char * | sym_print_name | ) |

Definition at line 396 of file typeprint.c.

References _, and error().

Referenced by evaluate_subexp_for_sizeof(), evaluate_subexp_standard(), and gen_expr().

## ◆ find_typedef_in_hash()

const char* find_typedef_in_hash | ( | const struct type_print_options * | ,
|  | struct type * |
| ) |  |

Definition at line 311 of file typeprint.c.

References find_global_typedef(), flags, decl_field::name, and decl_field::type.

Referenced by c_print_type_1(), and find_typedef_for_canonicalize().

## ◆ free_typedef_hash()

void free_typedef_hash | ( | struct typedef_hash_table * |  | ) |

Definition at line 179 of file typeprint.c.

References typedef_hash_table::table, and xfree().

Referenced by do_free_global_table(), and do_free_typedef_hash().

## ◆ make_cleanup_free_typedef_hash()

struct cleanup* make_cleanup_free_typedef_hash | ( | struct typedef_hash_table * |  | ) |

Definition at line 200 of file typeprint.c.

References do_free_typedef_hash(), and make_cleanup().

Referenced by c_type_print_base_struct_union().

## ◆ print_type_scalar()

void print_type_scalar | ( | struct type * | type,
|  | LONGEST | ,
|  | struct ui_file * |
| ) |  |

Definition at line 577 of file typeprint.c.

References _, check_typedef(), error(), fprintf_filtered(), fputs_filtered(), gdb_flush(), LA_PRINT_CHAR, print_longest(), print_type_scalar(), TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_BOOL, TYPE_CODE_CHAR, TYPE_CODE_ENUM, TYPE_CODE_ERROR, TYPE_CODE_FLT, TYPE_CODE_FUNC, TYPE_CODE_INT, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD, TYPE_CODE_METHODPTR, TYPE_CODE_NAMESPACE, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, TYPE_CODE_RVALUE_REF, TYPE_CODE_SET, TYPE_CODE_STRING, TYPE_CODE_STRUCT, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_CODE_VOID, TYPE_FIELD_ENUMVAL, TYPE_FIELD_NAME, TYPE_NFIELDS, TYPE_TARGET_TYPE, and TYPE_UNSIGNED.

Referenced by m2_print_bounds(), m2_print_long_set(), m2_range(), m2_val_print(), pascal_type_print_base(), pascal_val_print(), and print_type_scalar().

## ◆ recursively_update_typedef_hash()

void recursively_update_typedef_hash | ( | struct typedef_hash_table * | ,
|  | struct type * |
| ) |  |

Definition at line 106 of file typeprint.c.

References recursively_update_typedef_hash(), typedef_hash_table::table, TYPE_BASECLASS, TYPE_N_BASECLASSES, TYPE_TYPEDEF_FIELD, and TYPE_TYPEDEF_FIELD_COUNT.

Referenced by c_type_print_base_struct_union(), and recursively_update_typedef_hash().

## ◆ type_print_unknown_return_type()

void type_print_unknown_return_type | ( | struct ui_file * | stream | ) |

Definition at line 388 of file typeprint.c.

References _, and fprintf_filtered().

Referenced by c_type_print_base_1(), f_type_print_base(), m2_procedure(), and pascal_type_print_func_varspec_suffix().

## ◆ val_print_not_allocated()

void val_print_not_allocated | ( | struct ui_file * | stream | ) |

Definition at line 832 of file typeprint.c.

References _, and fprintf_filtered().

Referenced by f_print_type(), f_type_print_varspec_suffix(), valprint_check_validity(), and value_check_printable().

## ◆ val_print_not_associated()

void val_print_not_associated | ( | struct ui_file * | stream | ) |

Definition at line 840 of file typeprint.c.

References _, and fprintf_filtered().

Referenced by f_print_type(), f_type_print_varspec_suffix(), valprint_check_validity(), and value_check_printable().

## Variable Documentation

## ◆ type_print_raw_options

const struct type_print_options type_print_raw_options

Definition at line 40 of file typeprint.c.

Referenced by ada_print_subexp(), ada_print_typedef(), cp_print_class_member(), dwarf2_compute_name(), gnuv3_print_method_ptr(), print_symbol(), typy_str(), tyscm_type_name(), user_select_syms(), and yyparse().