GDB (API)
Classes | Defines | Typedefs | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/language.h File Reference

Go to the source code of this file.

Classes

struct  language_arch_info
struct  language_defn

Defines

#define MAX_FORTRAN_DIMS   7 /* Maximum number of F77 array dims. */
#define LANG_MAGIC   910823L
#define RANGE_CHECK   (range_check != range_check_off)
#define CAST_IS_CONVERSION(LANG)
#define LA_PRINT_TYPE(type, varstring, stream, show, level, flags)   (current_language->la_print_type(type,varstring,stream,show,level,flags))
#define LA_PRINT_TYPEDEF(type, new_symbol, stream)   (current_language->la_print_typedef(type,new_symbol,stream))
#define LA_VAL_PRINT(type, valaddr, offset, addr, stream, val, recurse, options)
#define LA_VALUE_PRINT(val, stream, options)   (current_language->la_value_print(val,stream,options))
#define LA_PRINT_CHAR(ch, type, stream)   (current_language->la_printchar(ch, type, stream))
#define LA_PRINT_STRING(stream, elttype, string, length, encoding, force_ellipses, options)
#define LA_EMIT_CHAR(ch, type, stream, quoter)   (current_language->la_emitchar(ch, type, stream, quoter))
#define LA_GET_STRING(value, buffer, length, chartype, encoding)   (current_language->la_get_string(value, buffer, length, chartype, encoding))
#define LA_PRINT_ARRAY_INDEX(index_value, stream, options)   (current_language->la_print_array_index(index_value, stream, options))
#define LA_ITERATE_OVER_SYMBOLS(BLOCK, NAME, DOMAIN, CALLBACK, DATA)
#define PRINT_LITERAL_FORM(c)
#define unop_type_check(v, o)   binop_type_check((v),NULL,(o))

Typedefs

typedef int(* symbol_name_cmp_ftype )(const char *symbol_search_name, const char *lookup_name)

Enumerations

enum  range_mode { range_mode_auto, range_mode_manual }
enum  range_check { range_check_off, range_check_warn, range_check_on }
enum  case_mode { case_mode_auto, case_mode_manual }
enum  array_ordering { array_row_major, array_column_major }
enum  case_sensitivity { case_sensitive_on, case_sensitive_off }
enum  macro_expansion { macro_expansion_no, macro_expansion_c }
enum  language_mode { language_mode_auto, language_mode_manual }

Functions

struct typelanguage_bool_type (const struct language_defn *l, struct gdbarch *gdbarch)
struct typelanguage_string_char_type (const struct language_defn *l, struct gdbarch *gdbarch)
struct typelanguage_lookup_primitive_type_by_name (const struct language_defn *l, struct gdbarch *gdbarch, const char *name)
void language_info (int)
enum language set_language (enum language)
int pointer_type (struct type *)
void binop_type_check (struct value *, struct value *, int)
void range_error (const char *,...) ATTRIBUTE_PRINTF(1
void int value_true (struct value *)
enum language language_enum (char *str)
struct language_defnlanguage_def (enum language)
char * language_str (enum language)
void add_language (const struct language_defn *)
enum language get_frame_language (void)
CORE_ADDR skip_language_trampoline (struct frame_info *, CORE_ADDR pc)
char * language_demangle (const struct language_defn *current_language, const char *mangled, int options)
char * language_class_name_from_physname (const struct language_defn *, const char *physname)
char * default_word_break_characters (void)
void default_print_array_index (struct value *index_value, struct ui_file *stream, const struct value_print_options *options)
int language_pass_by_reference (struct type *type)
int default_pass_by_reference (struct type *type)
void default_print_typedef (struct type *type, struct symbol *new_symbol, struct ui_file *stream)
void default_get_string (struct value *value, gdb_byte **buffer, int *length, struct type **char_type, const char **charset)
void c_get_string (struct value *value, gdb_byte **buffer, int *length, struct type **char_type, const char **charset)

Variables

enum range_mode range_mode
enum range_check range_check
enum case_mode case_mode
enum array_ordering array_ordering
enum case_sensitivity case_sensitivity
struct language_defncurrent_language
struct language_defnexpected_language
enum language_mode language_mode

Define Documentation

#define CAST_IS_CONVERSION (   LANG)
Value:
((LANG)->la_language == language_c  || \
                                  (LANG)->la_language == language_cplus || \
                                  (LANG)->la_language == language_objc)

Definition at line 409 of file language.h.

#define LA_EMIT_CHAR (   ch,
  type,
  stream,
  quoter 
)    (current_language->la_emitchar(ch, type, stream, quoter))

Definition at line 440 of file language.h.

#define LA_GET_STRING (   value,
  buffer,
  length,
  chartype,
  encoding 
)    (current_language->la_get_string(value, buffer, length, chartype, encoding))

Definition at line 442 of file language.h.

#define LA_ITERATE_OVER_SYMBOLS (   BLOCK,
  NAME,
  DOMAIN,
  CALLBACK,
  DATA 
)
Value:
(current_language->la_iterate_over_symbols (BLOCK, NAME, DOMAIN, CALLBACK, \
                                              DATA))

Definition at line 448 of file language.h.

#define LA_PRINT_ARRAY_INDEX (   index_value,
  stream,
  options 
)    (current_language->la_print_array_index(index_value, stream, options))

Definition at line 445 of file language.h.

#define LA_PRINT_CHAR (   ch,
  type,
  stream 
)    (current_language->la_printchar(ch, type, stream))

Definition at line 435 of file language.h.

#define LA_PRINT_STRING (   stream,
  elttype,
  string,
  length,
  encoding,
  force_ellipses,
  options 
)
Value:
(current_language->la_printstr(stream, elttype, string, length, \
                                 encoding, force_ellipses,options))

Definition at line 437 of file language.h.

#define LA_PRINT_TYPE (   type,
  varstring,
  stream,
  show,
  level,
  flags 
)    (current_language->la_print_type(type,varstring,stream,show,level,flags))

Definition at line 423 of file language.h.

#define LA_PRINT_TYPEDEF (   type,
  new_symbol,
  stream 
)    (current_language->la_print_typedef(type,new_symbol,stream))

Definition at line 426 of file language.h.

#define LA_VAL_PRINT (   type,
  valaddr,
  offset,
  addr,
  stream,
  val,
  recurse,
  options 
)
Value:
(current_language->la_val_print(type,valaddr,offset,addr,stream, \
                                  val,recurse,options))

Definition at line 429 of file language.h.

#define LA_VALUE_PRINT (   val,
  stream,
  options 
)    (current_language->la_value_print(val,stream,options))

Definition at line 432 of file language.h.

#define LANG_MAGIC   910823L

Definition at line 354 of file language.h.

#define MAX_FORTRAN_DIMS   7 /* Maximum number of F77 array dims. */

Definition at line 35 of file language.h.

#define PRINT_LITERAL_FORM (   c)
Value:
((c) >= 0x20                            \
   && ((c) < 0x7F || (c) >= 0xA0)       \
   && (!sevenbit_strings || (c) < 0x80))

Definition at line 458 of file language.h.

Definition at line 405 of file language.h.

#define unop_type_check (   v,
 
)    binop_type_check((v),NULL,(o))

Definition at line 469 of file language.h.


Typedef Documentation

typedef int(* symbol_name_cmp_ftype)(const char *symbol_search_name, const char *lookup_name)

Definition at line 125 of file language.h.


Enumeration Type Documentation

Enumerator:
array_row_major 
array_column_major 

Definition at line 72 of file language.h.

enum case_mode
Enumerator:
case_mode_auto 
case_mode_manual 

Definition at line 62 of file language.h.

Enumerator:
case_sensitive_on 
case_sensitive_off 

Definition at line 83 of file language.h.

Enumerator:
language_mode_auto 
language_mode_manual 

Definition at line 384 of file language.h.

Enumerator:
macro_expansion_no 
macro_expansion_c 

Definition at line 94 of file language.h.

Enumerator:
range_check_off 
range_check_warn 
range_check_on 

Definition at line 52 of file language.h.

enum range_mode
Enumerator:
range_mode_auto 
range_mode_manual 

Definition at line 41 of file language.h.


Function Documentation

void add_language ( const struct language_defn )

Definition at line 519 of file language.c.

void binop_type_check ( struct value *  ,
struct value *  ,
int   
)
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 default_get_string ( struct value *  value,
gdb_byte **  buffer,
int length,
struct type **  char_type,
const char **  charset 
)

Definition at line 687 of file language.c.

int default_pass_by_reference ( struct type type)

Definition at line 660 of file language.c.

void default_print_array_index ( struct value *  index_value,
struct ui_file *  stream,
const struct value_print_options options 
)

Definition at line 678 of file language.c.

void default_print_typedef ( struct type type,
struct symbol new_symbol,
struct ui_file *  stream 
)

Definition at line 349 of file typeprint.c.

Definition at line 670 of file language.c.

enum language get_frame_language ( void  )

Definition at line 2542 of file stack.c.

struct type* language_bool_type ( const struct language_defn l,
struct gdbarch *  gdbarch 
) [read]

Definition at line 955 of file language.c.

char* language_class_name_from_physname ( const struct language_defn ,
const char *  physname 
)

Definition at line 640 of file language.c.

struct language_defn* language_def ( enum  language) [read]

Definition at line 472 of file language.c.

char* language_demangle ( const struct language_defn current_language,
const char *  mangled,
int  options 
)

Definition at line 630 of file language.c.

enum language language_enum ( char *  str)

Definition at line 458 of file language.c.

void language_info ( int  )

Definition at line 372 of file language.c.

struct type* language_lookup_primitive_type_by_name ( const struct language_defn l,
struct gdbarch *  gdbarch,
const char *  name 
) [read]

Definition at line 980 of file language.c.

int language_pass_by_reference ( struct type type)

Definition at line 651 of file language.c.

char* language_str ( enum  language)

Definition at line 488 of file language.c.

struct type* language_string_char_type ( const struct language_defn l,
struct gdbarch *  gdbarch 
) [read]

Definition at line 945 of file language.c.

int pointer_type ( struct type )

Definition at line 393 of file language.c.

void range_error ( const char *  ,
  ... 
)
enum language set_language ( enum  language)

Definition at line 347 of file language.c.

CORE_ADDR skip_language_trampoline ( struct frame_info *  ,
CORE_ADDR  pc 
)

Definition at line 605 of file language.c.

void int value_true ( struct value *  )

Definition at line 405 of file language.c.


Variable Documentation

Definition at line 86 of file language.c.

Definition at line 92 of file language.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines