GDB (xrefs)
/tmp/gdb-7.10/gdb/stap-probe.h
Go to the documentation of this file.
1 /* SystemTap probe support for GDB.
2 
3  Copyright (C) 2012-2015 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 (STAP_PROBE_H)
21 #define STAP_PROBE_H 1
22 
23 /* For `struct parser_state'. */
24 #include "parser-defs.h"
25 
26 /* Structure which holds information about the parsing process of one probe's
27  argument. */
28 
30 {
31  /* The probe's argument in a string format. */
32  const char *arg;
33 
34  /* The parser state to be used when generating the expression. */
36 
37  /* A pointer to the full chain of arguments. This is useful for printing
38  error messages. The parser functions should not modify this argument
39  directly; instead, they should use the ARG pointer above. */
40  const char *saved_arg;
41 
42  /* The expected argument type (bitness), as defined in the probe's
43  argument. For instance, if the argument begins with `-8@', it means
44  the bitness is 64-bit signed. In this case, ARG_TYPE would represent
45  the type `int64_t'. */
46  struct type *arg_type;
47 
48  /* A pointer to the current gdbarch. */
49  struct gdbarch *gdbarch;
50 
51  /* Greater than zero if we are inside a parenthesized expression. Useful
52  for knowing when to skip spaces or not. */
54 };
55 
56 #endif /* !defined (STAP_PROBE_H) */
struct gdbarch * gdbarch
Definition: stap-probe.h:49
struct type * arg_type
Definition: stap-probe.h:46
const char * arg
Definition: stap-probe.h:32
struct parser_state pstate
Definition: stap-probe.h:35
Definition: gdbtypes.h:749
const char * saved_arg
Definition: stap-probe.h:40