Fix library segment-address for 64bit values
[deliverable/binutils-gdb.git] / gdb / d-lang.h
CommitLineData
6aecb9c2
JB
1/* D language support definitions for GDB, the GNU debugger.
2
11bc5fe4 3 Copyright (C) 2005-2020 Free Software Foundation, Inc.
6aecb9c2
JB
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
94b1b47e
IB
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
29struct builtin_d_type
30{
31 struct type *builtin_void;
32 struct type *builtin_bool;
33 struct type *builtin_byte;
34 struct type *builtin_ubyte;
35 struct type *builtin_short;
36 struct type *builtin_ushort;
37 struct type *builtin_int;
38 struct type *builtin_uint;
39 struct type *builtin_long;
40 struct type *builtin_ulong;
41 struct type *builtin_cent;
42 struct type *builtin_ucent;
43 struct type *builtin_float;
44 struct type *builtin_double;
45 struct type *builtin_real;
46 struct type *builtin_ifloat;
47 struct type *builtin_idouble;
48 struct type *builtin_ireal;
49 struct type *builtin_cfloat;
50 struct type *builtin_cdouble;
51 struct type *builtin_creal;
52 struct type *builtin_char;
53 struct type *builtin_wchar;
54 struct type *builtin_dchar;
55};
56
3ed9baed
IB
57/* Defined in d-exp.y. */
58
59extern int d_parse (struct parser_state *);
60
63778547
IB
61/* Defined in d-lang.c */
62
63extern const char *d_main_name (void);
64
6aecb9c2
JB
65extern char *d_demangle (const char *mangled, int options);
66
94b1b47e
IB
67extern const struct builtin_d_type *builtin_d_type (struct gdbarch *);
68
bc7c9fab
IB
69/* Defined in d-namespace.c */
70
71extern struct block_symbol d_lookup_symbol_nonlocal (const struct language_defn *,
72 const char *,
73 const struct block *,
74 const domain_enum);
75
76extern struct block_symbol d_lookup_nested_symbol (struct type *, const char *,
77 const struct block *);
78
94b1b47e
IB
79/* Defined in d-valprint.c */
80
e8b24d9f 81extern void d_val_print (struct type *type,
d3eab38a
TT
82 int embedded_offset, CORE_ADDR address,
83 struct ui_file *stream, int recurse,
e8b24d9f 84 struct value *val,
d3eab38a 85 const struct value_print_options *options);
6aecb9c2
JB
86
87#endif /* !defined (D_LANG_H) */
This page took 0.656427 seconds and 4 git commands to generate.