gdb/typeprint.h - gdb

Data types defined

Macros defined

Source code

  1. /* Language independent support for printing types for GDB, the GNU debugger.
  2.    Copyright (C) 1986-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 TYPEPRINT_H
  15. #define TYPEPRINT_H

  16. enum language;
  17. struct ui_file;
  18. struct typedef_hash_table;
  19. struct ext_lang_type_printers;

  20. struct type_print_options
  21. {
  22.   /* True means that no special printing flags should apply.  */
  23.   unsigned int raw : 1;

  24.   /* True means print methods in a class.  */
  25.   unsigned int print_methods : 1;

  26.   /* True means print typedefs in a class.  */
  27.   unsigned int print_typedefs : 1;

  28.   /* If not NULL, a local typedef hash table used when printing a
  29.      type.  */
  30.   struct typedef_hash_table *local_typedefs;

  31.   /* If not NULL, a global typedef hash table used when printing a
  32.      type.  */
  33.   struct typedef_hash_table *global_typedefs;

  34.   /* The list of type printers associated with the global typedef
  35.      table.  This is intentionally opaque.  */
  36.   struct ext_lang_type_printers *global_printers;
  37. };

  38. extern const struct type_print_options type_print_raw_options;

  39. void recursively_update_typedef_hash (struct typedef_hash_table *,
  40.                                       struct type *);

  41. void add_template_parameters (struct typedef_hash_table *, struct type *);

  42. struct typedef_hash_table *create_typedef_hash (void);

  43. void free_typedef_hash (struct typedef_hash_table *);

  44. struct cleanup *make_cleanup_free_typedef_hash (struct typedef_hash_table *);

  45. struct typedef_hash_table *copy_typedef_hash (struct typedef_hash_table *);

  46. const char *find_typedef_in_hash (const struct type_print_options *,
  47.                                   struct type *);

  48. void print_type_scalar (struct type * type, LONGEST, struct ui_file *);

  49. void c_type_print_varspec_suffix (struct type *, struct ui_file *, int,
  50.                                   int, int, const struct type_print_options *);

  51. void c_type_print_args (struct type *, struct ui_file *, int, enum language,
  52.                         const struct type_print_options *);

  53. #endif