GDB (API)
Defines | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/c-lang.c File Reference
#include "defs.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"
#include "parser-defs.h"
#include "language.h"
#include "c-lang.h"
#include "valprint.h"
#include "macroscope.h"
#include "gdb_assert.h"
#include "charset.h"
#include "gdb_string.h"
#include "demangle.h"
#include "cp-abi.h"
#include "cp-support.h"
#include "gdb_obstack.h"
#include <ctype.h>
#include "exceptions.h"
#include "gdbcore.h"

Go to the source code of this file.

Defines

#define ADVANCE

Enumerations

enum  c_primitive_types {
  c_primitive_type_int, c_primitive_type_long, c_primitive_type_short, c_primitive_type_char,
  c_primitive_type_float, c_primitive_type_double, c_primitive_type_void, c_primitive_type_long_long,
  c_primitive_type_signed_char, c_primitive_type_unsigned_char, c_primitive_type_unsigned_short, c_primitive_type_unsigned_int,
  c_primitive_type_unsigned_long, c_primitive_type_unsigned_long_long, c_primitive_type_long_double, c_primitive_type_complex,
  c_primitive_type_double_complex, c_primitive_type_decfloat, c_primitive_type_decdouble, c_primitive_type_declong,
  nr_c_primitive_types
}
enum  cplus_primitive_types {
  cplus_primitive_type_int, cplus_primitive_type_long, cplus_primitive_type_short, cplus_primitive_type_char,
  cplus_primitive_type_float, cplus_primitive_type_double, cplus_primitive_type_void, cplus_primitive_type_long_long,
  cplus_primitive_type_signed_char, cplus_primitive_type_unsigned_char, cplus_primitive_type_unsigned_short, cplus_primitive_type_unsigned_int,
  cplus_primitive_type_unsigned_long, cplus_primitive_type_unsigned_long_long, cplus_primitive_type_long_double, cplus_primitive_type_complex,
  cplus_primitive_type_double_complex, cplus_primitive_type_bool, cplus_primitive_type_decfloat, cplus_primitive_type_decdouble,
  cplus_primitive_type_declong, nr_cplus_primitive_types
}

Functions

void _initialize_c_language (void)
void c_emit_char (int c, struct type *type, struct ui_file *stream, int quoter)
void c_printchar (int c, struct type *type, struct ui_file *stream)
void c_printstr (struct ui_file *stream, struct type *type, const gdb_byte *string, unsigned int length, const char *user_encoding, int force_ellipses, const struct value_print_options *options)
void c_get_string (struct value *value, gdb_byte **buffer, int *length, struct type **char_type, const char **charset)
struct value * evaluate_subexp_c (struct type *expect_type, struct expression *exp, int *pos, enum noside noside)
void c_language_arch_info (struct gdbarch *gdbarch, struct language_arch_info *lai)

Variables

struct op_print c_op_print_tab []
struct exp_descriptor exp_descriptor_c
struct language_defn c_language_defn
struct language_defn cplus_language_defn
struct language_defn asm_language_defn
struct language_defn minimal_language_defn

Define Documentation

#define ADVANCE
Value:
do {                                            \
    ++p;                                        \
    if (p == limit)                             \
      error (_("Malformed escape sequence"));   \
  } while (0)

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


Enumeration Type Documentation

Enumerator:
c_primitive_type_int 
c_primitive_type_long 
c_primitive_type_short 
c_primitive_type_char 
c_primitive_type_float 
c_primitive_type_double 
c_primitive_type_void 
c_primitive_type_long_long 
c_primitive_type_signed_char 
c_primitive_type_unsigned_char 
c_primitive_type_unsigned_short 
c_primitive_type_unsigned_int 
c_primitive_type_unsigned_long 
c_primitive_type_unsigned_long_long 
c_primitive_type_long_double 
c_primitive_type_complex 
c_primitive_type_double_complex 
c_primitive_type_decfloat 
c_primitive_type_decdouble 
c_primitive_type_declong 
nr_c_primitive_types 

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

Enumerator:
cplus_primitive_type_int 
cplus_primitive_type_long 
cplus_primitive_type_short 
cplus_primitive_type_char 
cplus_primitive_type_float 
cplus_primitive_type_double 
cplus_primitive_type_void 
cplus_primitive_type_long_long 
cplus_primitive_type_signed_char 
cplus_primitive_type_unsigned_char 
cplus_primitive_type_unsigned_short 
cplus_primitive_type_unsigned_int 
cplus_primitive_type_unsigned_long 
cplus_primitive_type_unsigned_long_long 
cplus_primitive_type_long_double 
cplus_primitive_type_complex 
cplus_primitive_type_double_complex 
cplus_primitive_type_bool 
cplus_primitive_type_decfloat 
cplus_primitive_type_decdouble 
cplus_primitive_type_declong 
nr_cplus_primitive_types 

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


Function Documentation

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

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

void c_get_string ( struct value *  value,
gdb_byte **  buffer,
int length,
struct type **  char_type,
const char **  charset 
)

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

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

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

void c_printchar ( int  c,
struct type type,
struct ui_file *  stream 
)

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

void c_printstr ( struct ui_file *  stream,
struct type type,
const gdb_byte string,
unsigned int  length,
const char *  user_encoding,
int  force_ellipses,
const struct value_print_options options 
)

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

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

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


Variable Documentation

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

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

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

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

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines