GDB (xrefs)
Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/c-lang.h File Reference
#include "value.h"
#include "macroexp.h"
#include "parser-defs.h"

Go to the source code of this file.

Enumerations

enum  c_string_type {
  C_STRING = 0, C_WIDE_STRING = 1, C_STRING_16 = 2, C_STRING_32 = 3,
  C_CHAR = 4, C_WIDE_CHAR = 5, C_CHAR_16 = 6, C_CHAR_32 = 7
}

Functions

int c_parse (void)
void c_error (char *)
int c_parse_escape (const char **, struct obstack *)
void c_print_type (struct type *, const char *, struct ui_file *, int, int, const struct type_print_options *)
void c_print_typedef (struct type *, struct symbol *, struct ui_file *)
void c_val_print (struct type *, const gdb_byte *, int, CORE_ADDR, struct ui_file *, int, const struct value *, const struct value_print_options *)
void c_value_print (struct value *, struct ui_file *, const struct value_print_options *)
struct valueevaluate_subexp_c (struct type *expect_type, struct expression *exp, int *pos, enum noside noside)
void c_printchar (int, struct type *, struct ui_file *)
void c_printstr (struct ui_file *stream, struct type *elttype, const gdb_byte *string, unsigned int length, const char *user_encoding, int force_ellipses, const struct value_print_options *options)
void c_language_arch_info (struct gdbarch *gdbarch, struct language_arch_info *lai)
void c_emit_char (int c, struct type *type, struct ui_file *stream, int quoter)
void c_type_print_base (struct type *, struct ui_file *, int, int, const struct type_print_options *)
void cp_print_class_member (const gdb_byte *, struct type *, struct ui_file *, char *)
void cp_print_value_fields (struct type *, struct type *, const gdb_byte *, int, CORE_ADDR, struct ui_file *, int, const struct value *, const struct value_print_options *, struct type **, int)
void cp_print_value_fields_rtti (struct type *, const gdb_byte *, int, CORE_ADDR, struct ui_file *, int, const struct value *, const struct value_print_options *, struct type **, int)
int cp_is_vtbl_ptr_type (struct type *)
int cp_is_vtbl_member (struct type *)
int c_textual_element_type (struct type *, char)

Variables

struct exp_descriptor exp_descriptor_c
struct op_print c_op_print_tab []

Enumeration Type Documentation

Enumerator:
C_STRING 
C_WIDE_STRING 
C_STRING_16 
C_STRING_32 
C_CHAR 
C_WIDE_CHAR 
C_CHAR_16 
C_CHAR_32 

Definition at line 36 of file c-lang.h.


Function Documentation

void c_emit_char ( int  c,
struct type type,
struct ui_file stream,
int  quoter 
)

Definition at line 148 of file c-lang.c.

References classify_type(), encoding, generic_emit_char(), and get_type_arch().

void c_error ( char *  )
void c_language_arch_info ( struct gdbarch gdbarch,
struct language_arch_info lai 
)
int c_parse ( void  )
int c_parse_escape ( const char **  ,
struct obstack *   
)

Definition at line 5040 of file c-exp.c.

References _, error(), HOST_ESCAPE_CHAR, len, and obstack_grow_str.

Referenced by get_character_constant(), get_string_literal(), and parse_string_or_char().

void c_print_type ( struct type ,
const char *  ,
struct ui_file ,
int  ,
int  ,
const struct type_print_options  
)
void c_print_typedef ( struct type ,
struct symbol ,
struct ui_file  
)
void c_printchar ( int  ,
struct type ,
struct ui_file  
)
void c_printstr ( struct ui_file stream,
struct type elttype,
const gdb_byte string,
unsigned int  length,
const char *  user_encoding,
int  force_ellipses,
const struct value_print_options options 
)
int c_textual_element_type ( struct type ,
char   
)
void c_type_print_base ( struct type ,
struct ui_file ,
int  ,
int  ,
const struct type_print_options  
)

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

References _, add_template_parameters(), c_print_type(), c_type_print_base(), c_type_print_modifier(), c_type_print_template_args(), CHECK_TYPEDEF, copy_typedef_hash(), cp_type_print_derivation_info(), cp_type_print_method_args(), create_typedef_hash(), do_cleanups(), field_is_static(), flags, fprintf_filtered(), fprintfi_filtered(), fputs_filtered(), gdb_assert, gdb_demangle(), gdb_mangle_name(), get_vptr_fieldno(), cleanup_check::is_constructor(), is_constructor_name(), is_destructor_name(), is_type_conversion_operator(), len, type::length, type_print_options::local_typedefs, LONGEST, make_cleanup(), make_cleanup_free_typedef_hash(), name, null_cleanup(), p, plongest(), type_print_options::print_methods, print_name_maybe_canonical(), print_spaces_filtered(), type_print_options::print_typedefs, QUIT, type_print_options::raw, recursively_update_typedef_hash(), remove_qualifiers(), strstr(), TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_ENUM, TYPE_CODE_ERROR, TYPE_CODE_FUNC, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD, TYPE_CODE_METHODPTR, TYPE_CODE_NAMESPACE, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, TYPE_CODE_STRUCT, TYPE_CODE_TYPEDEF, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_CODE_VOID, TYPE_DECLARED_CLASS, TYPE_ERROR_NAME, TYPE_FIELD, TYPE_FIELD_ARTIFICIAL, TYPE_FIELD_BITSIZE, TYPE_FIELD_ENUMVAL, TYPE_FIELD_NAME, TYPE_FIELD_PACKED, TYPE_FIELD_PRIVATE, TYPE_FIELD_PROTECTED, TYPE_FIELD_TYPE, TYPE_FN_FIELD_ARTIFICIAL, TYPE_FN_FIELD_CONSTRUCTOR, TYPE_FN_FIELD_PHYSNAME, TYPE_FN_FIELD_PRIVATE, TYPE_FN_FIELD_PROTECTED, TYPE_FN_FIELD_STATIC_P, TYPE_FN_FIELD_STUB, TYPE_FN_FIELD_TYPE, TYPE_FN_FIELD_VIRTUAL_P, TYPE_FN_FIELDLIST1, TYPE_FN_FIELDLIST_LENGTH, TYPE_FN_FIELDLIST_NAME, TYPE_N_BASECLASSES, TYPE_NAME, type_name_no_tag(), TYPE_NFIELDS, TYPE_NFN_FIELDS, TYPE_STUB, TYPE_TAG_NAME, TYPE_TARGET_TYPE, TYPE_TYPEDEF_FIELD_COUNT, TYPE_TYPEDEF_FIELD_NAME, TYPE_TYPEDEF_FIELD_TYPE, wrap_here(), xfree(), and xmalloc().

Referenced by c_print_type(), c_type_print_base(), c_type_print_varspec_prefix(), cp_print_class_member(), and java_type_print_base().

void c_val_print ( struct type ,
const gdb_byte ,
int  ,
CORE_ADDR  ,
struct ui_file ,
int  ,
const struct value ,
const struct value_print_options  
)

Definition at line 134 of file c-valprint.c.

References _, value_print_options::addressprint, gdbarch::byte_order, c_textual_element_type(), check_typedef(), CHECK_TYPEDEF, common_val_print(), cp_is_vtbl_member(), cp_is_vtbl_ptr_type(), cp_print_class_member(), cp_print_value_fields_rtti(), cplus_print_method_ptr(), current_language, demangle, error(), extract_typed_address(), extract_unsigned_integer(), value_print_options::format, fprintf_filtered(), fputs_filtered(), gdb_flush(), gdbarch_byte_order(), generic_val_print(), get_array_bounds(), get_type_arch(), LA_PRINT_CHAR, LA_PRINT_STRING, len, LONGEST, lookup_minimal_symbol_by_pc(), lookup_symbol(), bound_minimal_symbol::minsym, offset, value_print_options::output_format, paddress(), value_print_options::prettyformat, value_print_options::prettyformat_arrays, print_address_demangle(), print_function_pointer_address(), value_print_options::print_max, print_spaces_filtered(), print_unpacked_pointer(), value_print_options::stop_print_at_null, SYMBOL_LINKAGE_NAME, value_print_options::symbol_print, SYMBOL_PRINT_NAME, SYMBOL_TYPE, SYMBOL_VALUE_ADDRESS, type, 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_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, TYPE_CODE_STRUCT, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_CODE_VOID, TYPE_FIELD_BITPOS, TYPE_FIELD_TYPE, TYPE_LENGTH, TYPE_TARGET_TYPE, ULONGEST, value_print_options::unionprint, unpack_long(), unpack_pointer(), val_print_array_elements(), val_print_scalar_formatted(), val_print_string(), val_print_type_code_int(), value_at(), value_bits_valid(), value_bytes_available(), VAR_DOMAIN, VTBL_FNADDR_OFFSET, and value_print_options::vtblprint.

Referenced by ada_val_print_1(), d_val_print(), go_val_print(), and java_val_print().

void c_value_print ( struct value ,
struct ui_file ,
const struct value_print_options  
)
int cp_is_vtbl_member ( struct type )
int cp_is_vtbl_ptr_type ( struct type )

Definition at line 99 of file cp-valprint.c.

References type_name_no_tag(), and vtbl_ptr_name.

Referenced by c_val_print(), and cp_is_vtbl_member().

void cp_print_class_member ( const gdb_byte ,
struct type ,
struct ui_file ,
char *   
)
void cp_print_value_fields ( struct type ,
struct type ,
const gdb_byte ,
int  ,
CORE_ADDR  ,
struct ui_file ,
int  ,
const struct value ,
const struct value_print_options ,
struct type **  ,
int   
)
void cp_print_value_fields_rtti ( struct type ,
const gdb_byte ,
int  ,
CORE_ADDR  ,
struct ui_file ,
int  ,
const struct value ,
const struct value_print_options ,
struct type **  ,
int   
)
struct value* evaluate_subexp_c ( struct type expect_type,
struct expression exp,
int pos,
enum noside  noside 
) [read]

Variable Documentation

Definition at line 708 of file c-lang.c.

Definition at line 801 of file c-lang.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines