GDB (API)
Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/jv-lang.c File Reference
#include "defs.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"
#include "parser-defs.h"
#include "language.h"
#include "symfile.h"
#include "objfiles.h"
#include "gdb_string.h"
#include "value.h"
#include "c-lang.h"
#include "jv-lang.h"
#include "gdbcore.h"
#include "block.h"
#include "demangle.h"
#include "dictionary.h"
#include <ctype.h>
#include "gdb_assert.h"
#include "charset.h"
#include "valprint.h"
#include "cp-support.h"

Go to the source code of this file.

Enumerations

enum  java_primitive_types {
  java_primitive_type_int, java_primitive_type_short, java_primitive_type_long, java_primitive_type_byte,
  java_primitive_type_boolean, java_primitive_type_char, java_primitive_type_float, java_primitive_type_double,
  java_primitive_type_void, nr_java_primitive_types
}

Functions

void _initialize_java_language (void)
struct typejava_lookup_class (char *name)
struct value * java_class_from_object (struct value *obj_val)
struct typetype_from_class (struct gdbarch *gdbarch, struct value *clas)
struct typeget_java_object_type (void)
int get_java_object_header_size (struct gdbarch *gdbarch)
int is_object_type (struct type *type)
struct typejava_primitive_type (struct gdbarch *gdbarch, int signature)
struct typejava_primitive_type_from_name (struct gdbarch *gdbarch, const char *name, int namelen)
char * java_demangle_type_signature (const char *signature)
struct typejava_array_type (struct type *type, int dims)
struct builtin_java_typebuiltin_java_type (struct gdbarch *gdbarch)

Variables

struct op_print java_op_print_tab []
struct exp_descriptor exp_descriptor_java
struct language_defn java_language_defn

Enumeration Type Documentation

Enumerator:
java_primitive_type_int 
java_primitive_type_short 
java_primitive_type_long 
java_primitive_type_byte 
java_primitive_type_boolean 
java_primitive_type_char 
java_primitive_type_float 
java_primitive_type_double 
java_primitive_type_void 
nr_java_primitive_types 

Definition at line 1105 of file jv-lang.c.


Function Documentation

void _initialize_java_language ( void  )
struct builtin_java_type* builtin_java_type ( struct gdbarch *  gdbarch) [read]

Definition at line 1233 of file jv-lang.c.

int get_java_object_header_size ( struct gdbarch *  gdbarch)

Definition at line 601 of file jv-lang.c.

struct type* get_java_object_type ( void  ) [read]

Definition at line 590 of file jv-lang.c.

int is_object_type ( struct type type)

Definition at line 612 of file jv-lang.c.

struct type* java_array_type ( struct type type,
int  dims 
) [read]

Definition at line 820 of file jv-lang.c.

struct value* java_class_from_object ( struct value *  obj_val) [read]

Definition at line 234 of file jv-lang.c.

char* java_demangle_type_signature ( const char *  signature)

Definition at line 806 of file jv-lang.c.

struct type* java_lookup_class ( char *  name) [read]

Definition at line 202 of file jv-lang.c.

struct type* java_primitive_type ( struct gdbarch *  gdbarch,
int  signature 
) [read]

Definition at line 635 of file jv-lang.c.

struct type* java_primitive_type_from_name ( struct gdbarch *  gdbarch,
const char *  name,
int  namelen 
) [read]

Definition at line 667 of file jv-lang.c.

struct type* type_from_class ( struct gdbarch *  gdbarch,
struct value *  clas 
) [read]

Definition at line 263 of file jv-lang.c.


Variable Documentation

Definition at line 1162 of file jv-lang.c.

Initial value:
{
  {",", BINOP_COMMA, PREC_COMMA, 0},
  {"=", BINOP_ASSIGN, PREC_ASSIGN, 1},
  {"||", BINOP_LOGICAL_OR, PREC_LOGICAL_OR, 0},
  {"&&", BINOP_LOGICAL_AND, PREC_LOGICAL_AND, 0},
  {"|", BINOP_BITWISE_IOR, PREC_BITWISE_IOR, 0},
  {"^", BINOP_BITWISE_XOR, PREC_BITWISE_XOR, 0},
  {"&", BINOP_BITWISE_AND, PREC_BITWISE_AND, 0},
  {"==", BINOP_EQUAL, PREC_EQUAL, 0},
  {"!=", BINOP_NOTEQUAL, PREC_EQUAL, 0},
  {"<=", BINOP_LEQ, PREC_ORDER, 0},
  {">=", BINOP_GEQ, PREC_ORDER, 0},
  {">", BINOP_GTR, PREC_ORDER, 0},
  {"<", BINOP_LESS, PREC_ORDER, 0},
  {">>", BINOP_RSH, PREC_SHIFT, 0},
  {"<<", BINOP_LSH, PREC_SHIFT, 0},
  {"+", BINOP_ADD, PREC_ADD, 0},
  {"-", BINOP_SUB, PREC_ADD, 0},
  {"*", BINOP_MUL, PREC_MUL, 0},
  {"/", BINOP_DIV, PREC_MUL, 0},
  {"%", BINOP_REM, PREC_MUL, 0},
  {"-", UNOP_NEG, PREC_PREFIX, 0},
  {"!", UNOP_LOGICAL_NOT, PREC_PREFIX, 0},
  {"~", UNOP_COMPLEMENT, PREC_PREFIX, 0},
  {"*", UNOP_IND, PREC_PREFIX, 0},
  {"++", UNOP_PREINCREMENT, PREC_PREFIX, 0},
  {"--", UNOP_PREDECREMENT, PREC_PREFIX, 0},
  {NULL, 0, 0, 0}
}

Definition at line 1074 of file jv-lang.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines