S390: Add target descriptions for vector register sets
[binutils-gdb.git] / gdb / typeprint.h
blobbdff41bb79026f0f69d9f722b51a705184dea94d
1 /* Language independent support for printing types for GDB, the GNU debugger.
2 Copyright (C) 1986-2015 Free Software Foundation, Inc.
4 This file is part of GDB.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 #ifndef TYPEPRINT_H
20 #define TYPEPRINT_H
22 enum language;
23 struct ui_file;
24 struct typedef_hash_table;
25 struct ext_lang_type_printers;
27 struct type_print_options
29 /* True means that no special printing flags should apply. */
30 unsigned int raw : 1;
32 /* True means print methods in a class. */
33 unsigned int print_methods : 1;
35 /* True means print typedefs in a class. */
36 unsigned int print_typedefs : 1;
38 /* If not NULL, a local typedef hash table used when printing a
39 type. */
40 struct typedef_hash_table *local_typedefs;
42 /* If not NULL, a global typedef hash table used when printing a
43 type. */
44 struct typedef_hash_table *global_typedefs;
46 /* The list of type printers associated with the global typedef
47 table. This is intentionally opaque. */
48 struct ext_lang_type_printers *global_printers;
51 extern const struct type_print_options type_print_raw_options;
53 void recursively_update_typedef_hash (struct typedef_hash_table *,
54 struct type *);
56 void add_template_parameters (struct typedef_hash_table *, struct type *);
58 struct typedef_hash_table *create_typedef_hash (void);
60 void free_typedef_hash (struct typedef_hash_table *);
62 struct cleanup *make_cleanup_free_typedef_hash (struct typedef_hash_table *);
64 struct typedef_hash_table *copy_typedef_hash (struct typedef_hash_table *);
66 const char *find_typedef_in_hash (const struct type_print_options *,
67 struct type *);
69 void print_type_scalar (struct type * type, LONGEST, struct ui_file *);
71 void c_type_print_varspec_suffix (struct type *, struct ui_file *, int,
72 int, int, const struct type_print_options *);
74 void c_type_print_args (struct type *, struct ui_file *, int, enum language,
75 const struct type_print_options *);
77 #endif