diff options
author | Tom Tromey <tom@tromey.com> | 2019-03-24 08:40:32 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-04-04 19:55:10 -0600 |
commit | 1201a264c8fd227737342345ab54e938295188b6 (patch) | |
tree | 7c419bb8e09f1875dedd813e7859edaa18aa6a34 /gdb/stap-probe.h | |
parent | e3980ce2a9bf19ade17fdd9817765f2d1e17a0d8 (diff) | |
download | binutils-gdb-1201a264c8fd227737342345ab54e938295188b6.tar.gz |
Remove parser_state "initial_size" parameter
All the real (not test) uses of parser_state pass 10 as the
"initial_size" parameter, and it seems to me that there's no real
reason to require callers to set this. This patch removes this
parameter.
gdb/ChangeLog
2019-04-04 Tom Tromey <tom@tromey.com>
* dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
* stap-probe.c (stap_parse_argument): Update.
* stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
initial_size parameter.
* rust-exp.y (rust_lex_tests): Update.
* parse.c (parser_state): Update.
(parse_exp_in_context): Update.
* parser-defs.h (struct parser_state) <parser_state>: Remove
"initial_size" parameter.
Diffstat (limited to 'gdb/stap-probe.h')
-rw-r--r-- | gdb/stap-probe.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/stap-probe.h b/gdb/stap-probe.h index 2a3a6d4cc22..6c56904aeb3 100644 --- a/gdb/stap-probe.h +++ b/gdb/stap-probe.h @@ -29,10 +29,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), |