constify ui_out_impl
[deliverable/binutils-gdb.git] / gdb / jv-lang.h
... / ...
CommitLineData
1/* Java language support definitions for GDB, the GNU debugger.
2
3 Copyright (C) 1997-2014 Free Software Foundation, Inc.
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
20#ifndef JV_LANG_H
21#define JV_LANG_H
22
23struct value;
24struct type_print_options;
25
26extern int java_parse (void); /* Defined in jv-exp.y */
27
28extern void java_error (char *); /* Defined in jv-exp.y */
29
30struct builtin_java_type
31{
32 struct type *builtin_int;
33 struct type *builtin_byte;
34 struct type *builtin_short;
35 struct type *builtin_long;
36 struct type *builtin_boolean;
37 struct type *builtin_char;
38 struct type *builtin_float;
39 struct type *builtin_double;
40 struct type *builtin_void;
41};
42
43extern const struct builtin_java_type *builtin_java_type (struct gdbarch *);
44
45extern void java_val_print (struct type *, const gdb_byte *, int, CORE_ADDR,
46 struct ui_file *, int,
47 const struct value *,
48 const struct value_print_options *);
49
50extern void java_value_print (struct value *, struct ui_file *,
51 const struct value_print_options *);
52
53extern struct value *java_class_from_object (struct value *);
54
55extern struct type *type_from_class (struct gdbarch *, struct value *);
56
57extern struct type *java_primitive_type (struct gdbarch *, int signature);
58
59extern struct type *java_primitive_type_from_name (struct gdbarch *,
60 const char *, int);
61
62extern struct type *java_array_type (struct type *, int);
63
64extern struct type *get_java_object_type (void);
65extern int get_java_object_header_size (struct gdbarch *);
66
67extern struct type *java_lookup_class (char *);
68
69extern int is_object_type (struct type *);
70
71/* Defined in jv-typeprint.c */
72extern void java_print_type (struct type *, const char *,
73 struct ui_file *, int, int,
74 const struct type_print_options *);
75
76extern char *java_demangle_type_signature (const char *);
77
78#endif
This page took 0.032572 seconds and 4 git commands to generate.