GDB (xrefs)
Loading...
Searching...
No Matches
d-lang.h
Go to the documentation of this file.
1/* D language support definitions for GDB, the GNU debugger.
2
3 Copyright (C) 2005-2023 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#if !defined (D_LANG_H)
21#define D_LANG_H 1
22
23#include "symtab.h"
24
25/* Language specific builtin types for D. Any additional types added
26 should be kept in sync with enum d_primitive_types, where these
27 types are documented. */
28
30{
31 struct type *builtin_void = nullptr;
32 struct type *builtin_bool = nullptr;
33 struct type *builtin_byte = nullptr;
34 struct type *builtin_ubyte = nullptr;
35 struct type *builtin_short = nullptr;
36 struct type *builtin_ushort = nullptr;
37 struct type *builtin_int = nullptr;
38 struct type *builtin_uint = nullptr;
39 struct type *builtin_long = nullptr;
40 struct type *builtin_ulong = nullptr;
41 struct type *builtin_cent = nullptr;
42 struct type *builtin_ucent = nullptr;
43 struct type *builtin_float = nullptr;
44 struct type *builtin_double = nullptr;
45 struct type *builtin_real = nullptr;
46 struct type *builtin_ifloat = nullptr;
47 struct type *builtin_idouble = nullptr;
48 struct type *builtin_ireal = nullptr;
49 struct type *builtin_cfloat = nullptr;
50 struct type *builtin_cdouble = nullptr;
51 struct type *builtin_creal = nullptr;
52 struct type *builtin_char = nullptr;
53 struct type *builtin_wchar = nullptr;
54 struct type *builtin_dchar = nullptr;
55};
56
57/* Defined in d-exp.y. */
58
59extern int d_parse (struct parser_state *);
60
61/* Defined in d-lang.c */
62
63extern const char *d_main_name (void);
64
65extern gdb::unique_xmalloc_ptr<char> d_demangle (const char *mangled,
66 int options);
67
68extern const struct builtin_d_type *builtin_d_type (struct gdbarch *);
69
70/* Defined in d-namespace.c */
71
72extern struct block_symbol d_lookup_symbol_nonlocal (const struct language_defn *,
73 const char *,
74 const struct block *,
75 const domain_enum);
76
77extern struct block_symbol d_lookup_nested_symbol (struct type *, const char *,
78 const struct block *);
79
80/* Implement la_value_print_inner for D. */
81
82extern void d_value_print_inner (struct value *val,
83 struct ui_file *stream, int recurse,
84 const struct value_print_options *options);
85
86#endif /* !defined (D_LANG_H) */
int d_parse(struct parser_state *)
Definition d-exp.c:3298
const struct builtin_d_type * builtin_d_type(struct gdbarch *)
Definition d-lang.c:279
const char * d_main_name(void)
Definition d-lang.c:40
struct block_symbol d_lookup_symbol_nonlocal(const struct language_defn *, const char *, const struct block *, const domain_enum)
gdb::unique_xmalloc_ptr< char > d_demangle(const char *mangled, int options)
Definition d-lang.c:55
void d_value_print_inner(struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options)
Definition d-valprint.c:74
struct block_symbol d_lookup_nested_symbol(struct type *, const char *, const struct block *)
Definition block.h:109
struct type * builtin_idouble
Definition d-lang.h:47
struct type * builtin_cdouble
Definition d-lang.h:50
struct type * builtin_byte
Definition d-lang.h:33
struct type * builtin_creal
Definition d-lang.h:51
struct type * builtin_void
Definition d-lang.h:31
struct type * builtin_wchar
Definition d-lang.h:53
struct type * builtin_ubyte
Definition d-lang.h:34
struct type * builtin_cent
Definition d-lang.h:41
struct type * builtin_ushort
Definition d-lang.h:36
struct type * builtin_real
Definition d-lang.h:45
struct type * builtin_long
Definition d-lang.h:39
struct type * builtin_dchar
Definition d-lang.h:54
struct type * builtin_ifloat
Definition d-lang.h:46
struct type * builtin_ireal
Definition d-lang.h:48
struct type * builtin_bool
Definition d-lang.h:32
struct type * builtin_cfloat
Definition d-lang.h:49
struct type * builtin_double
Definition d-lang.h:44
struct type * builtin_char
Definition d-lang.h:52
struct type * builtin_ulong
Definition d-lang.h:40
struct type * builtin_uint
Definition d-lang.h:38
struct type * builtin_short
Definition d-lang.h:35
struct type * builtin_int
Definition d-lang.h:37
struct type * builtin_ucent
Definition d-lang.h:42
struct type * builtin_float
Definition d-lang.h:43
Definition value.h:130
domain_enum
Definition symtab.h:900