]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/annotate.h
Don't check termio.h and sgtty.h in common/common.m4 either
[thirdparty/binutils-gdb.git] / gdb / annotate.h
CommitLineData
c906108c 1/* Annotation routines for GDB.
61baf725 2 Copyright (C) 1986-2017 Free Software Foundation, Inc.
c906108c 3
c5aa993b 4 This file is part of GDB.
c906108c 5
c5aa993b
JM
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
a9762ec7 8 the Free Software Foundation; either version 3 of the License, or
c5aa993b 9 (at your option) any later version.
c906108c 10
c5aa993b
JM
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.
c906108c 15
c5aa993b 16 You should have received a copy of the GNU General Public License
a9762ec7 17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
c906108c
SS
18
19#include "symtab.h"
20#include "gdbtypes.h"
21
a14ed312
KB
22extern void annotate_breakpoint (int);
23extern void annotate_catchpoint (int);
24extern void annotate_watchpoint (int);
25extern void annotate_starting (void);
26extern void annotate_stopped (void);
27extern void annotate_exited (int);
28extern void annotate_signalled (void);
29extern void annotate_signal_name (void);
30extern void annotate_signal_name_end (void);
31extern void annotate_signal_string (void);
32extern void annotate_signal_string_end (void);
33extern void annotate_signal (void);
34
35extern void annotate_breakpoints_headers (void);
36extern void annotate_field (int);
37extern void annotate_breakpoints_table (void);
38extern void annotate_record (void);
39extern void annotate_breakpoints_table_end (void);
40
41extern void annotate_frames_invalid (void);
6dfcd284 42extern void annotate_new_thread (void);
a2b87ed1 43extern void annotate_thread_changed (void);
c906108c 44
bd00c694
PA
45extern void annotate_display_prompt (void);
46
c906108c 47struct type;
c906108c 48
a14ed312
KB
49extern void annotate_field_begin (struct type *);
50extern void annotate_field_name_end (void);
51extern void annotate_field_value (void);
52extern void annotate_field_end (void);
53
54extern void annotate_quit (void);
55extern void annotate_error (void);
56extern void annotate_error_begin (void);
57
58extern void annotate_value_history_begin (int, struct type *);
59extern void annotate_value_begin (struct type *);
60extern void annotate_value_history_value (void);
61extern void annotate_value_history_end (void);
62extern void annotate_value_end (void);
63
64extern void annotate_display_begin (void);
65extern void annotate_display_number_end (void);
66extern void annotate_display_format (void);
67extern void annotate_display_expression (void);
68extern void annotate_display_expression_end (void);
69extern void annotate_display_value (void);
70extern void annotate_display_end (void);
71
72extern void annotate_arg_begin (void);
73extern void annotate_arg_name_end (void);
74extern void annotate_arg_value (struct type *);
75extern void annotate_arg_end (void);
76
46b9c129
TT
77/* Wrap calls to annotate_arg_begin and annotate_arg_end in an RAII
78 class. */
79struct annotate_arg_emitter
80{
81 annotate_arg_emitter () { annotate_arg_begin (); }
82 ~annotate_arg_emitter () { annotate_arg_end (); }
83
d6541620 84 DISABLE_COPY_AND_ASSIGN (annotate_arg_emitter);
46b9c129
TT
85};
86
5af949e3
UW
87extern void annotate_source (char *, int, int, int,
88 struct gdbarch *, CORE_ADDR);
a14ed312 89
5af949e3 90extern void annotate_frame_begin (int, struct gdbarch *, CORE_ADDR);
a14ed312
KB
91extern void annotate_function_call (void);
92extern void annotate_signal_handler_caller (void);
93extern void annotate_frame_address (void);
94extern void annotate_frame_address_end (void);
95extern void annotate_frame_function_name (void);
96extern void annotate_frame_args (void);
97extern void annotate_frame_source_begin (void);
98extern void annotate_frame_source_file (void);
99extern void annotate_frame_source_file_end (void);
100extern void annotate_frame_source_line (void);
101extern void annotate_frame_source_end (void);
102extern void annotate_frame_where (void);
103extern void annotate_frame_end (void);
104
105extern void annotate_array_section_begin (int, struct type *);
106extern void annotate_elt_rep (unsigned int);
107extern void annotate_elt_rep_end (void);
108extern void annotate_elt (void);
109extern void annotate_array_section_end (void);
c906108c 110
9a4105ab
AC
111extern void (*deprecated_annotate_signalled_hook) (void);
112extern void (*deprecated_annotate_signal_hook) (void);