gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdb / go-lang.h
CommitLineData
a766d390
DE
1/* Go language support definitions for GDB, the GNU debugger.
2
b811d2c2 3 Copyright (C) 2012-2020 Free Software Foundation, Inc.
a766d390
DE
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 (GO_LANG_H)
21#define GO_LANG_H 1
22
79d43c61
TT
23struct type_print_options;
24
a766d390
DE
25#include "gdbtypes.h"
26#include "symtab.h"
27#include "value.h"
28
410a0ff2
SDJ
29struct parser_state;
30
a766d390
DE
31struct builtin_go_type
32{
33 struct type *builtin_void;
34 struct type *builtin_char;
35 struct type *builtin_bool;
36 struct type *builtin_int;
37 struct type *builtin_uint;
38 struct type *builtin_uintptr;
39 struct type *builtin_int8;
40 struct type *builtin_int16;
41 struct type *builtin_int32;
42 struct type *builtin_int64;
43 struct type *builtin_uint8;
44 struct type *builtin_uint16;
45 struct type *builtin_uint32;
46 struct type *builtin_uint64;
47 struct type *builtin_float32;
48 struct type *builtin_float64;
49 struct type *builtin_complex64;
50 struct type *builtin_complex128;
51};
52
53enum go_type
54{
55 GO_TYPE_NONE, /* Not a Go object. */
56 GO_TYPE_STRING
57};
58
59/* Defined in go-exp.y. */
60
410a0ff2 61extern int go_parse (struct parser_state *);
a766d390 62
a766d390
DE
63/* Defined in go-lang.c. */
64
65extern const char *go_main_name (void);
66
67extern enum go_type go_classify_struct_type (struct type *type);
68
69extern char *go_demangle (const char *mangled, int options);
70
71extern char *go_symbol_package_name (const struct symbol *sym);
72
73extern char *go_block_package_name (const struct block *block);
74
75extern const struct builtin_go_type *builtin_go_type (struct gdbarch *);
76
77/* Defined in go-typeprint.c. */
78
79extern void go_print_type (struct type *type, const char *varstring,
79d43c61
TT
80 struct ui_file *stream, int show, int level,
81 const struct type_print_options *flags);
a766d390 82
23b0f06b
TT
83/* Implement la_value_print_inner for Go. */
84
85extern void go_value_print_inner (struct value *value,
86 struct ui_file *stream, int recurse,
87 const struct value_print_options *options);
88
a766d390 89#endif /* !defined (GO_LANG_H) */
This page took 0.691106 seconds and 4 git commands to generate.