gdb/jv-lang.h - gdb

Data types defined

Macros defined

Source code

  1. /* Java language support definitions for GDB, the GNU debugger.

  2.    Copyright (C) 1997-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 3 of the License, or
  7.    (at your option) any later version.

  8.    This program is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.    GNU General Public License for more details.

  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  14. #ifndef JV_LANG_H
  15. #define JV_LANG_H

  16. struct value;
  17. struct type_print_options;
  18. struct parser_state;

  19. extern int java_parse (struct parser_state *); /* Defined in jv-exp.y */

  20. extern void java_error (char *);        /* Defined in jv-exp.y */

  21. struct builtin_java_type
  22. {
  23.   struct type *builtin_int;
  24.   struct type *builtin_byte;
  25.   struct type *builtin_short;
  26.   struct type *builtin_long;
  27.   struct type *builtin_boolean;
  28.   struct type *builtin_char;
  29.   struct type *builtin_float;
  30.   struct type *builtin_double;
  31.   struct type *builtin_void;
  32. };

  33. extern const struct builtin_java_type *builtin_java_type (struct gdbarch *);

  34. extern void java_val_print (struct type *, const gdb_byte *, int, CORE_ADDR,
  35.                             struct ui_file *, int,
  36.                             const struct value *,
  37.                             const struct value_print_options *);

  38. extern void java_value_print (struct value *, struct ui_file *,
  39.                               const struct value_print_options *);

  40. extern struct value *java_class_from_object (struct value *);

  41. extern struct type *type_from_class (struct gdbarch *, struct value *);

  42. extern struct type *java_primitive_type (struct gdbarch *, int signature);

  43. extern struct type *java_primitive_type_from_name (struct gdbarch *,
  44.                                                    const char *, int);

  45. extern struct type *java_array_type (struct type *, int);

  46. extern struct type *get_java_object_type (void);
  47. extern int get_java_object_header_size (struct gdbarch *);

  48. extern struct type *java_lookup_class (char *);

  49. extern int is_object_type (struct type *);

  50. /* Defined in jv-typeprint.c */
  51. extern void java_print_type (struct type *, const char *,
  52.                              struct ui_file *, int, int,
  53.                              const struct type_print_options *);

  54. extern char *java_demangle_type_signature (const char *);

  55. #endif