X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fstap-probe.h;h=d5199d9a24553067a5beec22a0d34ff5faf9cc6a;hb=8aaaf7577f070c91086533d959ac36a15d1d604f;hp=0e9df0602ac19e34394dc33603bd85b125395904;hpb=55aa24fb2eb147288fec359a99e960f7136336e8;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/stap-probe.h b/gdb/stap-probe.h index 0e9df0602a..d5199d9a24 100644 --- a/gdb/stap-probe.h +++ b/gdb/stap-probe.h @@ -1,6 +1,6 @@ /* SystemTap probe support for GDB. - Copyright (C) 2012 Free Software Foundation, Inc. + Copyright (C) 2012-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -20,16 +20,33 @@ #if !defined (STAP_PROBE_H) #define STAP_PROBE_H 1 -#include "probe.h" +#include "parser-defs.h" /* Structure which holds information about the parsing process of one probe's argument. */ struct stap_parse_info { + stap_parse_info (const char *arg_, struct type *arg_type_, + const struct language_defn *lang, + struct gdbarch *gdbarch) + : arg (arg_), + pstate (lang, gdbarch), + saved_arg (arg_), + arg_type (arg_type_), + gdbarch (gdbarch), + inside_paren_p (0) + { + } + + DISABLE_COPY_AND_ASSIGN (stap_parse_info); + /* The probe's argument in a string format. */ const char *arg; + /* The parser state to be used when generating the expression. */ + struct expr_builder pstate; + /* A pointer to the full chain of arguments. This is useful for printing error messages. The parser functions should not modify this argument directly; instead, they should use the ARG pointer above. */