GDB (xrefs)

Functions | Variables
/tmp/gdb-8.1/gdb/p-lang.h File Reference

Go to the source code of this file.

## Functions
const char * | pascal_main_name (void)
int | pascal_parse (struct parser_state *)
void | pascal_yyerror (const char *)
void | pascal_print_type (struct type *, const char *, struct ui_file *, int, int, const struct type_print_options *)
void | pascal_print_typedef (struct type *, struct symbol *, struct ui_file *)
void | pascal_val_print (struct type *, int, CORE_ADDR, struct ui_file *, int, struct value *, const struct value_print_options *)
void | pascal_value_print (struct value *, struct ui_file *, const struct value_print_options *)
void | pascal_type_print_method_args (const char *, const char *, struct ui_file *)
int | is_pascal_string_type (struct type *, int *, int *, int *, struct type **, const char **)
void | pascal_printchar (int, struct type *, struct ui_file *)
void | pascal_printstr (struct ui_file *, struct type *, const gdb_byte *, unsigned int, const char *, int, const struct value_print_options *)
void | pascal_type_print_base (struct type *, struct ui_file *, int, int, const struct type_print_options *)
void | pascal_type_print_varspec_prefix (struct type *, struct ui_file *, int, int, const struct type_print_options *)
void | pascal_object_print_value_fields (struct type *, const gdb_byte *, LONGEST, CORE_ADDR, struct ui_file *, int, struct value *, const struct value_print_options *, struct type **, int)
int | pascal_object_is_vtbl_ptr_type (struct type *)
int | pascal_object_is_vtbl_member (struct type *)

## Variables
struct type **const | pascal_builtin_types []

## Function Documentation

## ◆ is_pascal_string_type()

int is_pascal_string_type | ( | struct type * | ,
|  | int * | ,
|  | int * | ,
|  | int * | ,
|  | struct type ** | ,
|  | const char ** |
| ) |  |

Definition at line 96 of file p-lang.c.

References TARGET_CHAR_BIT, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_STRUCT, TYPE_FIELD_BITPOS, TYPE_FIELD_NAME, TYPE_FIELD_TYPE, TYPE_LENGTH, TYPE_NFIELDS, and TYPE_TARGET_TYPE.

Referenced by pascal_val_print(), and yyparse().

## ◆ pascal_main_name()

const char* pascal_main_name | ( | void |  | ) |

Definition at line 57 of file p-lang.c.

References GPC_MAIN_PROGRAM_NAME_1, GPC_MAIN_PROGRAM_NAME_2, GPC_P_INITIALIZE, and lookup_minimal_symbol().

Referenced by find_main_name().

## ◆ pascal_object_is_vtbl_member()

int pascal_object_is_vtbl_member | ( | struct type * |  | ) |

Definition at line 502 of file p-valprint.c.

References pascal_object_is_vtbl_ptr_type(), TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_PTR, TYPE_CODE_STRUCT, and TYPE_TARGET_TYPE.

Referenced by pascal_val_print().

## ◆ pascal_object_is_vtbl_ptr_type()

int pascal_object_is_vtbl_ptr_type | ( | struct type * |  | ) |

Definition at line 490 of file p-valprint.c.

References pascal_vtbl_ptr_name, and type_name_no_tag().

Referenced by pascal_object_is_vtbl_member(), and pascal_val_print().

## ◆ pascal_object_print_value_fields()

void pascal_object_print_value_fields | ( | struct type * | ,
|  | const gdb_byte * | ,
|  | LONGEST | ,
|  | CORE_ADDR | ,
|  | struct ui_file * | ,
|  | int | ,
|  | struct value * | ,
|  | const struct value_print_options * | ,
|  | struct type ** | ,
|  | int |
| ) |  |

Definition at line 534 of file p-valprint.c.

References _, annotate_field_begin(), annotate_field_end(), annotate_field_name_end(), annotate_field_value(), check_typedef(), common_val_print(), current_language, value_print_options::deref_ref, dont_print_statmem_obstack, field_is_static(), fprintf_filtered(), fprintf_symbol_filtered(), fputs_filtered(), language_cplus, n_spaces(), offset, pascal_object_print_static_field(), pascal_object_print_value(), value_print_options::pascal_static_field_print, value_print_options::prettyformat, print_spaces_filtered(), TYPE_FIELD, TYPE_FIELD_BITPOS, TYPE_FIELD_BITSIZE, TYPE_FIELD_IGNORE, TYPE_FIELD_NAME, TYPE_FIELD_PACKED, TYPE_FIELD_TYPE, TYPE_N_BASECLASSES, type_name_no_tag(), TYPE_NFIELDS, val_print(), val_print_optimized_out(), value_bits_synthetic_pointer(), value_field_bitfield(), and wrap_here().

Referenced by pascal_object_print_static_field(), pascal_object_print_value(), and pascal_val_print().

## ◆ pascal_parse()

int pascal_parse | ( | struct parser_state * |  | ) |

Definition at line 3349 of file p-exp.c.

References gdb_assert, make_scoped_restore(), pstate, and yyparse().

## ◆ pascal_print_type()

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

Definition at line 48 of file p-typeprint.c.

References check_typedef(), code, flags, fputs_filtered(), pascal_type_print_base(), pascal_type_print_varspec_prefix(), pascal_type_print_varspec_suffix(), TYPE_CODE, TYPE_CODE_FUNC, and TYPE_CODE_METHOD.

Referenced by pascal_print_func_args(), and pascal_type_print_base().

## ◆ pascal_print_typedef()

void pascal_print_typedef | ( | struct type * | ,
|  | struct symbol * | ,
|  | struct ui_file * |
| ) |  |

Definition at line 96 of file p-typeprint.c.

References check_typedef(), fprintf_filtered(), new_symbol(), SYMBOL_PRINT_NAME, and type_print().

## ◆ pascal_printchar()

void pascal_printchar | ( | int | ,
|  | struct type * | ,
|  | struct ui_file * |
| ) |  |

Definition at line 201 of file p-lang.c.

References fputs_filtered(), and pascal_one_char().

Referenced by pascal_printstr().

## ◆ pascal_printstr()

void pascal_printstr | ( | struct ui_file * | ,
|  | struct type * | ,
|  | const gdb_byte * | ,
|  | unsigned | int,
|  | const char * | ,
|  | int | ,
|  | const struct value_print_options * |
| ) |  |

Definition at line 216 of file p-lang.c.

References check_typedef(), extract_unsigned_integer(), fprintf_filtered(), fputs_filtered(), gdbarch_byte_order(), get_type_arch(), pascal_one_char(), pascal_printchar(), PRINT_LITERAL_FORM, value_print_options::print_max, QUIT, value_print_options::repeat_count_threshold, and TYPE_LENGTH.

## ◆ pascal_type_print_base()

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

Definition at line 457 of file p-typeprint.c.

References check_typedef(), field_is_static(), flags, fprintf_filtered(), fprintfi_filtered(), fputs_filtered(), HAVE_CPLUS_STRUCT, cleanup_check::is_constructor(), is_cplus_marker(), cleanup_check::is_destructor(), pascal_print_type(), pascal_type_print_derivation_info(), pascal_type_print_method_args(), fn_field::physname, plongest(), print_spaces_filtered(), print_type_scalar(), QUIT, s_none, s_private, s_protected, s_public, startswith(), TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_ENUM, TYPE_CODE_ERROR, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, TYPE_CODE_SET, TYPE_CODE_STRING, TYPE_CODE_STRUCT, TYPE_CODE_TYPEDEF, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_CODE_VOID, TYPE_ERROR_NAME, TYPE_FIELD, TYPE_FIELD_BITSIZE, TYPE_FIELD_ENUMVAL, TYPE_FIELD_NAME, TYPE_FIELD_PACKED, TYPE_FIELD_PRIVATE, TYPE_FIELD_PROTECTED, TYPE_FIELD_TYPE, TYPE_FN_FIELD_PHYSNAME, TYPE_FN_FIELD_PRIVATE, TYPE_FN_FIELD_PROTECTED, TYPE_FN_FIELD_STATIC_P, TYPE_FN_FIELD_TYPE, TYPE_FN_FIELD_VIRTUAL_P, TYPE_FN_FIELDLIST1, TYPE_FN_FIELDLIST_LENGTH, TYPE_FN_FIELDLIST_NAME, TYPE_HIGH_BOUND, TYPE_INDEX_TYPE, TYPE_LOW_BOUND, TYPE_N_BASECLASSES, TYPE_NAME, TYPE_NFIELDS, TYPE_NFN_FIELDS, type_print(), TYPE_STUB, TYPE_TAG_NAME, TYPE_TARGET_TYPE, and wrap_here().

Referenced by pascal_print_type(), pascal_type_print_func_varspec_suffix(), and pascal_type_print_varspec_prefix().

## ◆ pascal_type_print_method_args()

void pascal_type_print_method_args | ( | const char * | ,
|  | const char * | ,
|  | struct ui_file * |
| ) |  |

Definition at line 154 of file p-typeprint.c.

References fputc_filtered(), fputs_filtered(), cleanup_check::is_constructor(), cleanup_check::is_destructor(), and startswith().

Referenced by pascal_type_print_base(), and pascal_type_print_varspec_suffix().

## ◆ pascal_type_print_varspec_prefix()

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

Definition at line 206 of file p-typeprint.c.

References _, error(), flags, fprintf_filtered(), pascal_type_print_base(), plongest(), QUIT, TYPE_ARRAY_LOWER_BOUND_VALUE, TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED, TYPE_ARRAY_UPPER_BOUND_VALUE, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_BOOL, TYPE_CODE_CHAR, TYPE_CODE_COMPLEX, TYPE_CODE_ENUM, TYPE_CODE_ERROR, TYPE_CODE_FLT, TYPE_CODE_FUNC, TYPE_CODE_INT, TYPE_CODE_METHOD, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, TYPE_CODE_SET, TYPE_CODE_STRING, TYPE_CODE_STRUCT, TYPE_CODE_TYPEDEF, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_CODE_VOID, TYPE_LENGTH, TYPE_NAME, TYPE_SELF_TYPE, and TYPE_TARGET_TYPE.

Referenced by pascal_print_type(), and pascal_type_print_func_varspec_suffix().

## ◆ pascal_val_print()

void pascal_val_print | ( | struct type * | ,
|  | int | ,
|  | CORE_ADDR | ,
|  | struct ui_file * | ,
|  | int | ,
|  | struct value * | ,
|  | const struct value_print_options * |
| ) |  |

Definition at line 62 of file p-valprint.c.

References _, value_print_options::addressprint, BMSYMBOL_VALUE_ADDRESS, gdbarch::byte_order, check_typedef(), common_val_print(), current_language, demangle, error(), extract_unsigned_integer(), value_print_options::format, fprintf_filtered(), fputs_filtered(), gdb_flush(), gdbarch_byte_order(), generic_val_print(), get_array_bounds(), get_discrete_bounds(), get_type_arch(), is_pascal_string_type(), LA_PRINT_STRING, lookup_minimal_symbol_by_pc(), lookup_symbol_search_name(), bound_minimal_symbol::minsym, MSYMBOL_PRINT_NAME, MSYMBOL_SEARCH_NAME, p_decorations, paddress(), pascal_object_is_vtbl_member(), pascal_object_is_vtbl_ptr_type(), pascal_object_print_value_fields(), value_print_options::prettyformat, value_print_options::prettyformat_arrays, print_address_demangle(), value_print_options::print_max, print_spaces_filtered(), print_type_scalar(), print_unpacked_pointer(), read_memory(), value_print_options::stop_print_at_null, block_symbol::symbol, value_print_options::symbol_print, SYMBOL_TYPE, TARGET_CHAR_BIT, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_BOOL, TYPE_CODE_CHAR, TYPE_CODE_ENUM, TYPE_CODE_ERROR, TYPE_CODE_FLAGS, TYPE_CODE_FLT, TYPE_CODE_FUNC, TYPE_CODE_INT, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, TYPE_CODE_SET, TYPE_CODE_STRUCT, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_CODE_VOID, TYPE_FIELD_BITPOS, TYPE_FIELD_TYPE, TYPE_HIGH_BOUND, TYPE_INDEX_TYPE, TYPE_LENGTH, TYPE_STUB, TYPE_TARGET_TYPE, value_print_options::unionprint, unpack_pointer(), val_print_array_elements(), val_print_scalar_formatted(), val_print_string(), value_at(), value_bit_index(), value_contents_for_printing(), VAR_DOMAIN, VTBL_FNADDR_OFFSET, value_print_options::vtblprint, xfree(), and xmalloc().

## ◆ pascal_value_print()

void pascal_value_print | ( | struct value * | ,
|  | struct ui_file * | ,
|  | const struct value_print_options * |
| ) |  |

Definition at line 423 of file p-valprint.c.

References common_val_print(), current_language, value_print_options::deref_ref, fprintf_filtered(), TYPE_CODE, TYPE_CODE_PTR, TYPE_CODE_REF, TYPE_NAME, type_print(), TYPE_TARGET_TYPE, and value_type().

## ◆ pascal_yyerror()

void pascal_yyerror | ( | const char * |  | ) |

## Variable Documentation

## ◆ pascal_builtin_types

struct type** const pascal_builtin_types[]