Commit | Line | Data |
---|---|---|
c906108c SS |
1 | /* Java language support definitions for GDB, the GNU debugger. |
2 | Copyright 1997, 1998, 1999 Free Software Foundation, Inc. | |
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 | |
21 | extern int | |
22 | java_parse PARAMS ((void)); /* Defined in jv-exp.y */ | |
23 | ||
24 | extern void | |
25 | java_error PARAMS ((char *)); /* Defined in jv-exp.y */ | |
26 | ||
27 | /* sizeof (struct Object) */ | |
28 | #define JAVA_OBJECT_SIZE (get_java_object_header_size ()) | |
29 | ||
30 | extern struct type *java_int_type; | |
31 | extern struct type *java_byte_type; | |
32 | extern struct type *java_short_type; | |
33 | extern struct type *java_long_type; | |
34 | extern struct type *java_boolean_type; | |
35 | extern struct type *java_char_type; | |
36 | extern struct type *java_float_type; | |
37 | extern struct type *java_double_type; | |
38 | extern struct type *java_void_type; | |
39 | ||
40 | extern int | |
41 | java_val_print PARAMS ((struct type *, char *, int, CORE_ADDR, GDB_FILE *, int, int, | |
42 | int, enum val_prettyprint)); | |
43 | ||
44 | extern int | |
45 | java_value_print PARAMS ((struct value *, GDB_FILE *, int, | |
46 | enum val_prettyprint)); | |
47 | ||
48 | extern value_ptr java_class_from_object PARAMS ((value_ptr)); | |
49 | ||
50 | extern struct type *type_from_class PARAMS ((struct value *)); | |
51 | ||
52 | extern struct type *java_primitive_type PARAMS ((int signature)); | |
53 | ||
c5aa993b | 54 | extern struct type *java_primitive_type_from_name PARAMS ((char *, int)); |
c906108c SS |
55 | |
56 | extern struct type *java_array_type PARAMS ((struct type *, int)); | |
57 | ||
58 | extern struct type *get_java_object_type PARAMS ((void)); | |
59 | extern int get_java_object_header_size PARAMS ((void)); | |
60 | ||
c5aa993b | 61 | extern struct type *java_lookup_class PARAMS ((char *)); |
c906108c | 62 | |
c5aa993b | 63 | extern int is_object_type PARAMS ((struct type *)); |
c906108c SS |
64 | |
65 | extern void /* Defined in jv-typeprint.c */ | |
66 | java_print_type PARAMS ((struct type *, char *, GDB_FILE *, int, int)); | |
67 | ||
68 | extern char *java_demangle_type_signature PARAMS ((char *)); |