X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fstap-probe.h;h=b464aa81b236ae02b916f8bb82c49341b5bcd8b9;hb=14aa4ee440f85a0e4d86b7adb50c93bbf0b7fc5b;hp=80f37f7300697cf717fb756e03c0689a0353a451;hpb=e2882c85786571175a0b0bfc3bcd2f14620b1ea3;p=binutils-gdb.git diff --git a/gdb/stap-probe.h b/gdb/stap-probe.h index 80f37f73006..b464aa81b23 100644 --- a/gdb/stap-probe.h +++ b/gdb/stap-probe.h @@ -1,6 +1,6 @@ /* SystemTap probe support for GDB. - Copyright (C) 2012-2018 Free Software Foundation, Inc. + Copyright (C) 2012-2021 Free Software Foundation, Inc. This file is part of GDB. @@ -20,7 +20,6 @@ #if !defined (STAP_PROBE_H) #define STAP_PROBE_H 1 -/* For `struct parser_state'. */ #include "parser-defs.h" /* Structure which holds information about the parsing process of one probe's @@ -29,10 +28,10 @@ struct stap_parse_info { stap_parse_info (const char *arg_, struct type *arg_type_, - size_t initial_size, const struct language_defn *lang, + const struct language_defn *lang, struct gdbarch *gdbarch) : arg (arg_), - pstate (initial_size, lang, gdbarch), + pstate (lang, gdbarch), saved_arg (arg_), arg_type (arg_type_), gdbarch (gdbarch), @@ -46,7 +45,7 @@ struct stap_parse_info const char *arg; /* The parser state to be used when generating the expression. */ - struct parser_state pstate; + 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