import gdb-2000-02-01 snapshot
[deliverable/binutils-gdb.git] / gdb / jv-lang.h
CommitLineData
c906108c 1/* Java language support definitions for GDB, the GNU debugger.
d9fcf2fb 2 Copyright 1997-2000 Free Software Foundation, Inc.
c906108c 3
c5aa993b 4 This file is part of GDB.
c906108c 5
c5aa993b
JM
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
c906108c 10
c5aa993b
JM
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
c906108c 15
c5aa993b
JM
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
c906108c
SS
20
21extern int
22java_parse PARAMS ((void)); /* Defined in jv-exp.y */
23
24extern void
25java_error PARAMS ((char *)); /* Defined in jv-exp.y */
26
27/* sizeof (struct Object) */
28#define JAVA_OBJECT_SIZE (get_java_object_header_size ())
29
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
d9fcf2fb
JM
40extern int java_val_print (struct type *, char *, int, CORE_ADDR,
41 struct ui_file *, int, int, int,
42 enum val_prettyprint);
c906108c 43
d9fcf2fb
JM
44extern int java_value_print (struct value *, struct ui_file *, int,
45 enum val_prettyprint);
c906108c
SS
46
47extern value_ptr java_class_from_object PARAMS ((value_ptr));
48
49extern struct type *type_from_class PARAMS ((struct value *));
50
51extern struct type *java_primitive_type PARAMS ((int signature));
52
c5aa993b 53extern struct type *java_primitive_type_from_name PARAMS ((char *, int));
c906108c
SS
54
55extern struct type *java_array_type PARAMS ((struct type *, int));
56
57extern struct type *get_java_object_type PARAMS ((void));
58extern int get_java_object_header_size PARAMS ((void));
59
c5aa993b 60extern struct type *java_lookup_class PARAMS ((char *));
c906108c 61
c5aa993b 62extern int is_object_type PARAMS ((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
SS
67
68extern char *java_demangle_type_signature PARAMS ((char *));
This page took 0.047735 seconds and 4 git commands to generate.