2009-06-27 Michael Snyder <msnyder@vmware.com>
[deliverable/binutils-gdb.git] / gdb / jv-lang.h
CommitLineData
c906108c 1/* Java language support definitions for GDB, the GNU debugger.
a2bd3dcd 2
0fb0cc75 3 Copyright (C) 1997, 1998, 1999, 2000, 2005, 2007, 2008, 2009
6aba47ca 4 Free Software Foundation, Inc.
c906108c 5
c5aa993b 6 This file is part of GDB.
c906108c 7
c5aa993b
JM
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
a9762ec7 10 the Free Software Foundation; either version 3 of the License, or
c5aa993b 11 (at your option) any later version.
c906108c 12
c5aa993b
JM
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
c906108c 17
c5aa993b 18 You should have received a copy of the GNU General Public License
a9762ec7 19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
c906108c 20
75c9979e
AC
21#ifndef JV_LANG_H
22#define JV_LANG_H
23
24struct value;
25
a14ed312 26extern int java_parse (void); /* Defined in jv-exp.y */
c906108c 27
a14ed312 28extern void java_error (char *); /* Defined in jv-exp.y */
c906108c 29
c906108c
SS
30extern struct type *java_int_type;
31extern struct type *java_byte_type;
32extern struct type *java_short_type;
33extern struct type *java_long_type;
34extern struct type *java_boolean_type;
35extern struct type *java_char_type;
36extern struct type *java_float_type;
37extern struct type *java_double_type;
38extern struct type *java_void_type;
39
fc1a4b47 40extern int java_val_print (struct type *, const gdb_byte *, int, CORE_ADDR,
79a45b7d
TT
41 struct ui_file *, int,
42 const struct value_print_options *);
c906108c 43
79a45b7d
TT
44extern int java_value_print (struct value *, struct ui_file *,
45 const struct value_print_options *);
c906108c 46
75c9979e 47extern struct value *java_class_from_object (struct value *);
c906108c 48
a14ed312 49extern struct type *type_from_class (struct value *);
c906108c 50
a14ed312 51extern struct type *java_primitive_type (int signature);
c906108c 52
a14ed312 53extern struct type *java_primitive_type_from_name (char *, int);
c906108c 54
a14ed312 55extern struct type *java_array_type (struct type *, int);
c906108c 56
a14ed312 57extern struct type *get_java_object_type (void);
45d5d5ca 58extern int get_java_object_header_size (struct gdbarch *);
c906108c 59
a14ed312 60extern struct type *java_lookup_class (char *);
c906108c 61
a14ed312 62extern int is_object_type (struct type *);
c906108c 63
d9fcf2fb
JM
64/* Defined in jv-typeprint.c */
65extern void java_print_type (struct type *, char *, struct ui_file *, int,
66 int);
c906108c 67
a14ed312 68extern char *java_demangle_type_signature (char *);
75c9979e
AC
69
70#endif
This page took 0.868715 seconds and 4 git commands to generate.