]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/jv-lang.h
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / gdb / jv-lang.h
CommitLineData
7a9eb4c4
PB
1/* Java language support definitions for GDB, the GNU debugger.
2 Copyright 1997 Free Software Foundation, Inc.
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
20extern int
166606b7 21java_parse PARAMS ((void)); /* Defined in jv-exp.y */
7a9eb4c4
PB
22
23extern void
166606b7 24java_error PARAMS ((char *)); /* Defined in jv-exp.y */
7a9eb4c4 25
d2e131a1 26#define JAVA_OBJECT_SIZE (1 * 4) /* sizeof (struct Object) FIXME ! */
7a9eb4c4
PB
27
28extern struct type *java_int_type;
29extern struct type *java_byte_type;
30extern struct type *java_short_type;
31extern struct type *java_long_type;
32extern struct type *java_boolean_type;
33extern struct type *java_char_type;
34extern struct type *java_float_type;
35extern struct type *java_double_type;
36extern struct type *java_void_type;
37
38/* This objfile contains symtabs that have been dynamically created
39 to record dynamically loaded Java classes and dynamically
40 compiled java methods. */
41extern struct objfile *dynamics_objfile;
42
43extern int
4ef1f467 44java_val_print PARAMS ((struct type *, char *, int, CORE_ADDR, GDB_FILE *, int, int,
7a9eb4c4
PB
45 int, enum val_prettyprint));
46
47extern int
48java_value_print PARAMS ((struct value *, GDB_FILE *, int,
49 enum val_prettyprint));
50
51extern value_ptr java_class_from_object PARAMS ((value_ptr));
52
53extern struct type *type_from_class PARAMS ((struct value*));
54
55extern struct type *java_primitive_type PARAMS ((int));
56
57extern struct type *java_array_type PARAMS ((struct type*, int));
58
242c0d81 59extern struct type *get_java_object_type PARAMS ((void));
7a9eb4c4
PB
60
61extern struct type * java_lookup_class PARAMS((char *));
62
63extern int is_object_type PARAMS ((struct type*));
166606b7
PB
64
65extern void /* Defined in jv-typeprint.c */
66java_print_type PARAMS ((struct type *, char *, GDB_FILE *, int, int));
fc655dc2
PB
67
68extern char * java_demangle_type_signature PARAMS ((char *));