GDB (xrefs)
Loading...
Searching...
No Matches
Enumerations | Functions | Variables
c-lang.h File Reference
#include "compile/compile.h"
#include "value.h"
#include "macroexp.h"
#include "gdbsupport/enum-flags.h"

Go to the source code of this file.

Enumerations

enum  c_string_type_values : unsigned {
  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 *)
 
int c_parse_escape (const char **, struct obstack *)
 
void c_print_type (struct type *type, const char *varstring, struct ui_file *stream, int show, int level, enum language language, const struct type_print_options *flags)
 
void c_print_typedef (struct type *, struct symbol *, struct ui_file *)
 
void c_value_print_inner (struct value *, struct ui_file *, int, const struct value_print_options *)
 
void c_value_print (struct value *, struct ui_file *, const struct value_print_options *)
 
void c_printchar (int, struct type *, struct ui_file *)
 
void c_language_arch_info (struct gdbarch *gdbarch, struct language_arch_info *lai)
 
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 value *, struct ui_file *, int, const struct value_print_options *, struct type **, int)
 
int cp_is_vtbl_ptr_type (struct type *)
 
int cp_is_vtbl_member (struct type *)
 
bool c_is_string_type_p (struct type *type)
 
int c_textual_element_type (struct type *, char)
 
std::unique_ptr< compile_instancec_get_compile_context ()
 
std::unique_ptr< compile_instancecplus_get_compile_context ()
 
std::string c_compute_program (compile_instance *inst, const char *input, struct gdbarch *gdbarch, const struct block *expr_block, CORE_ADDR expr_pc)
 
std::string cplus_compute_program (compile_instance *inst, const char *input, struct gdbarch *gdbarch, const struct block *expr_block, CORE_ADDR expr_pc)
 
gdb::unique_xmalloc_ptr< char > c_canonicalize_name (const char *name)
 

Variables

const char vtbl_ptr_name []
 

Enumeration Type Documentation

◆ c_string_type_values

enum c_string_type_values : unsigned
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 39 of file c-lang.h.

Function Documentation

◆ c_canonicalize_name()

gdb::unique_xmalloc_ptr< char > c_canonicalize_name ( const char * name)
extern

◆ c_compute_program()

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

◆ c_get_compile_context()

std::unique_ptr< compile_instance > c_get_compile_context ( )
extern

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

References get_compile_context().

Referenced by c_language::get_compile_instance().

◆ c_is_string_type_p()

bool c_is_string_type_p ( struct type * type)
extern

◆ c_language_arch_info()

void c_language_arch_info ( struct gdbarch * gdbarch,
struct language_arch_info * lai )
extern

◆ c_parse()

int c_parse ( struct parser_state * par_state)
extern

◆ c_parse_escape()

int c_parse_escape ( const char ** ptr,
struct obstack * output )
extern

◆ c_print_type()

void c_print_type ( struct type * type,
const char * varstring,
struct ui_file * stream,
int show,
int level,
enum language language,
const struct type_print_options * flags )
extern

◆ c_print_typedef()

void c_print_typedef ( struct type * type,
struct symbol * new_symbol,
struct ui_file * stream )
extern

◆ c_printchar()

void c_printchar ( int ,
struct type * ,
struct ui_file *  )
extern

◆ c_textual_element_type()

int c_textual_element_type ( struct type * type,
char format )
extern

◆ c_type_print_base()

void c_type_print_base ( struct type * type,
struct ui_file * stream,
int show,
int level,
const struct type_print_options * flags )
extern

◆ c_value_print()

void c_value_print ( struct value * val,
struct ui_file * stream,
const struct value_print_options * options )
extern

◆ c_value_print_inner()

void c_value_print_inner ( struct value * val,
struct ui_file * stream,
int recurse,
const struct value_print_options * options )
extern

◆ cp_is_vtbl_member()

int cp_is_vtbl_member ( struct type * type)
extern

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

References type::code(), cp_is_vtbl_ptr_type(), and type::target_type().

Referenced by print_unpacked_pointer().

◆ cp_is_vtbl_ptr_type()

int cp_is_vtbl_ptr_type ( struct type * type)
extern

◆ cp_print_class_member()

void cp_print_class_member ( const gdb_byte * valaddr,
struct type * type,
struct ui_file * stream,
const char * prefix )
extern

◆ cp_print_value_fields()

void cp_print_value_fields ( struct value * val,
struct ui_file * stream,
int recurse,
const struct value_print_options * options,
struct type ** dont_print_vb,
int dont_print_statmem )
extern

◆ cplus_compute_program()

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

◆ cplus_get_compile_context()

std::unique_ptr< compile_instance > cplus_get_compile_context ( )
extern

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

References get_compile_context().

Referenced by cplus_language::get_compile_instance().

◆ DEF_ENUM_FLAGS_TYPE()

DEF_ENUM_FLAGS_TYPE ( enum c_string_type_values,
c_string_type  )

Variable Documentation

◆ vtbl_ptr_name

const char vtbl_ptr_name[]
extern

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

Referenced by cp_is_vtbl_ptr_type(), and define_symbol().