GDB (xrefs)
/tmp/gdb-7.10/gdb/jv-lang.h
Go to the documentation of this file.
1 /* Java language support definitions for GDB, the GNU debugger.
2 
3  Copyright (C) 1997-2015 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 
23 struct value;
24 struct type_print_options;
25 struct parser_state;
26 
27 extern int java_parse (struct parser_state *); /* Defined in jv-exp.y */
28 
29 extern void java_error (char *); /* Defined in jv-exp.y */
30 
32 {
33  struct type *builtin_int;
34  struct type *builtin_byte;
36  struct type *builtin_long;
38  struct type *builtin_char;
41  struct type *builtin_void;
42 };
43 
44 extern const struct builtin_java_type *builtin_java_type (struct gdbarch *);
45 
46 extern 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 
51 extern void java_value_print (struct value *, struct ui_file *,
52  const struct value_print_options *);
53 
54 extern struct value *java_class_from_object (struct value *);
55 
56 extern struct type *type_from_class (struct gdbarch *, struct value *);
57 
58 extern struct type *java_primitive_type (struct gdbarch *, int signature);
59 
60 extern struct type *java_primitive_type_from_name (struct gdbarch *,
61  const char *, int);
62 
63 extern struct type *java_array_type (struct type *, int);
64 
65 extern struct type *get_java_object_type (void);
66 extern int get_java_object_header_size (struct gdbarch *);
67 
68 extern struct type *java_lookup_class (char *);
69 
70 extern int is_object_type (struct type *);
71 
72 /* Defined in jv-typeprint.c */
73 extern void java_print_type (struct type *, const char *,
74  struct ui_file *, int, int,
75  const struct type_print_options *);
76 
77 extern char *java_demangle_type_signature (const char *);
78 
79 #endif
struct type * builtin_void
Definition: jv-lang.h:41
struct type * builtin_short
Definition: jv-lang.h:35
bfd_vma CORE_ADDR
Definition: common-types.h:41
const struct builtin_java_type * builtin_java_type(struct gdbarch *)
Definition: jv-lang.c:1236
struct type * builtin_boolean
Definition: jv-lang.h:37
void java_val_print(struct type *, const gdb_byte *, int, CORE_ADDR, struct ui_file *, int, const struct value *, const struct value_print_options *)
Definition: jv-valprint.c:455
int get_java_object_header_size(struct gdbarch *)
Definition: jv-lang.c:600
struct type * java_primitive_type(struct gdbarch *, int signature)
Definition: jv-lang.c:634
void java_print_type(struct type *, const char *, struct ui_file *, int, int, const struct type_print_options *)
Definition: jv-typeprint.c:335
char * java_demangle_type_signature(const char *)
Definition: jv-lang.c:805
int java_parse(struct parser_state *)
Definition: jv-exp.c:2872
struct type * java_primitive_type_from_name(struct gdbarch *, const char *, int)
Definition: jv-lang.c:666
Definition: gdbtypes.h:749
struct type * java_lookup_class(char *)
Definition: jv-lang.c:201
int is_object_type(struct type *)
Definition: jv-lang.c:611
struct type * java_array_type(struct type *, int)
Definition: jv-lang.c:819
struct type * get_java_object_type(void)
Definition: jv-lang.c:589
struct type * builtin_float
Definition: jv-lang.h:39
struct type * builtin_double
Definition: jv-lang.h:40
Definition: value.c:172
struct type * builtin_int
Definition: jv-lang.h:33
bfd_byte gdb_byte
Definition: common-types.h:38
struct type * type_from_class(struct gdbarch *, struct value *)
Definition: jv-lang.c:262
void java_error(char *)
struct type * builtin_byte
Definition: jv-lang.h:34
void java_value_print(struct value *, struct ui_file *, const struct value_print_options *)
Definition: jv-valprint.c:35
struct type * builtin_char
Definition: jv-lang.h:38
struct value * java_class_from_object(struct value *)
Definition: jv-lang.c:233
struct type * builtin_long
Definition: jv-lang.h:36