GDB (xrefs)
Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/c-lang.h File Reference
#include "value.h"
#include "macroexp.h"
#include "parser-defs.h"
#include "common/enum-flags.h"

Go to the source code of this file.

Enumerations

enum  c_string_type_values {
  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

 DEF_ENUM_FLAGS_TYPE (enum c_string_type_values, c_string_type)
 
int c_parse (struct parser_state *)
 
void c_yyerror (const 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 *, int, CORE_ADDR, struct ui_file *, int, 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)
 
gdb::unique_xmalloc_ptr< char > c_watch_location_expression (struct type *type, CORE_ADDR addr)
 
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 *, const char *)
 
void cp_print_value_fields (struct type *, struct type *, LONGEST, CORE_ADDR, struct ui_file *, int, struct value *, const struct value_print_options *, struct type **, int)
 
void cp_print_value_fields_rtti (struct type *, const gdb_byte *, LONGEST, CORE_ADDR, struct ui_file *, int, 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)
 
struct compile_instancec_get_compile_context (void)
 
std::string c_compute_program (struct compile_instance *inst, const char *input, struct gdbarch *gdbarch, const struct block *expr_block, CORE_ADDR expr_pc)
 

Variables

const struct exp_descriptor exp_descriptor_c
 
const struct op_print c_op_print_tab []
 

Enumeration Type Documentation

◆ c_string_type_values

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 38 of file c-lang.h.

Function Documentation

◆ c_compute_program()

std::string c_compute_program ( struct compile_instance inst,
const char *  input,
struct gdbarch gdbarch,
const struct block expr_block,
CORE_ADDR  expr_pc 
)

◆ c_emit_char()

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

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

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

◆ c_get_compile_context()

struct compile_instance* c_get_compile_context ( void  )

Definition at line 99 of file compile-c-support.c.

References _, error(), func, gdb_assert, load_libcc(), and new_compile_instance().

◆ c_language_arch_info()

void c_language_arch_info ( struct gdbarch gdbarch,
struct language_arch_info lai 
)

◆ c_parse()

int c_parse ( struct parser_state )

◆ c_parse_escape()

int c_parse_escape ( const char **  ,
struct obstack *   
)

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

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

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

◆ c_print_type()

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

◆ c_print_typedef()

void c_print_typedef ( struct type ,
struct symbol ,
struct ui_file  
)

◆ c_printchar()

void c_printchar ( int  ,
struct type ,
struct ui_file  
)

◆ c_printstr()

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 
)

◆ c_textual_element_type()

int c_textual_element_type ( struct type ,
char   
)

◆ c_type_print_base()

void c_type_print_base ( struct type ,
struct ui_file ,
int  ,
int  ,
const struct type_print_options  
)

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

References c_type_print_base_1(), and flags.

Referenced by cp_print_class_member().

◆ c_val_print()

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

◆ c_value_print()

void c_value_print ( struct value ,
struct ui_file ,
const struct value_print_options  
)

◆ c_watch_location_expression()

gdb::unique_xmalloc_ptr<char> c_watch_location_expression ( struct type type,
CORE_ADDR  addr 
)

◆ c_yyerror()

void c_yyerror ( const char *  )

◆ cp_is_vtbl_member()

int cp_is_vtbl_member ( struct type )

◆ cp_is_vtbl_ptr_type()

int cp_is_vtbl_ptr_type ( struct type )

◆ cp_print_class_member()

void cp_print_class_member ( const gdb_byte ,
struct type ,
struct ui_file ,
const char *   
)

◆ cp_print_value_fields()

void cp_print_value_fields ( struct type ,
struct type ,
LONGEST  ,
CORE_ADDR  ,
struct ui_file ,
int  ,
struct value ,
const struct value_print_options ,
struct type **  ,
int   
)

◆ cp_print_value_fields_rtti()

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

◆ DEF_ENUM_FLAGS_TYPE()

DEF_ENUM_FLAGS_TYPE ( enum  c_string_type_values,
c_string_type   
)

◆ evaluate_subexp_c()

struct value* evaluate_subexp_c ( struct type expect_type,
struct expression exp,
int *  pos,
enum noside  noside 
)

Variable Documentation

◆ c_op_print_tab

const struct op_print c_op_print_tab[]

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

◆ exp_descriptor_c

const struct exp_descriptor exp_descriptor_c

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