daily update
[deliverable/binutils-gdb.git] / gdb / jv-lang.h
... / ...
CommitLineData
1/* Java language support definitions for GDB, the GNU debugger.
2
3 Copyright (C) 1997-2000, 2005, 2007-2012 Free Software Foundation,
4 Inc.
5
6 This file is part of GDB.
7
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
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
12
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.
17
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20
21#ifndef JV_LANG_H
22#define JV_LANG_H
23
24struct value;
25struct type_print_options;
26
27extern int java_parse (void); /* Defined in jv-exp.y */
28
29extern void java_error (char *); /* Defined in jv-exp.y */
30
31struct builtin_java_type
32{
33 struct type *builtin_int;
34 struct type *builtin_byte;
35 struct type *builtin_short;
36 struct type *builtin_long;
37 struct type *builtin_boolean;
38 struct type *builtin_char;
39 struct type *builtin_float;
40 struct type *builtin_double;
41 struct type *builtin_void;
42};
43
44extern const struct builtin_java_type *builtin_java_type (struct gdbarch *);
45
46extern void java_val_print (struct type *, const gdb_byte *, int, CORE_ADDR,
47 struct ui_file *, int,
48 const struct value *,
49 const struct value_print_options *);
50
51extern void java_value_print (struct value *, struct ui_file *,
52 const struct value_print_options *);
53
54extern struct value *java_class_from_object (struct value *);
55
56extern struct type *type_from_class (struct gdbarch *, struct value *);
57
58extern struct type *java_primitive_type (struct gdbarch *, int signature);
59
60extern struct type *java_primitive_type_from_name (struct gdbarch *,
61 const char *, int);
62
63extern struct type *java_array_type (struct type *, int);
64
65extern struct type *get_java_object_type (void);
66extern int get_java_object_header_size (struct gdbarch *);
67
68extern struct type *java_lookup_class (char *);
69
70extern int is_object_type (struct type *);
71
72/* Defined in jv-typeprint.c */
73extern void java_print_type (struct type *, const char *,
74 struct ui_file *, int, int,
75 const struct type_print_options *);
76
77extern char *java_demangle_type_signature (const char *);
78
79#endif
This page took 0.023361 seconds and 4 git commands to generate.