diff options
author | Tom Tromey <tom@tromey.com> | 2020-12-16 15:12:55 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-12-16 15:17:43 -0700 |
commit | 35c1ab606dcf99e36a82498864b6afa095088692 (patch) | |
tree | 2b6a3ff8e85304811f7434c0605c908fc1bddf62 /gdb/ada-lang.c | |
parent | 93df4a1d079ba804fa66b67d2b2acf1fd62c2cd9 (diff) | |
download | fsf-binutils-gdb-35c1ab606dcf99e36a82498864b6afa095088692.zip fsf-binutils-gdb-35c1ab606dcf99e36a82498864b6afa095088692.tar.gz fsf-binutils-gdb-35c1ab606dcf99e36a82498864b6afa095088692.tar.bz2 |
Change void_context_p to bool
This patch changes void_context_p to bool, as a prerequisite to the
change to post_parser that I submitted here:
https://sourceware.org/pipermail/gdb-patches/2020-December/174080.html
Tested by rebuilding.
Note that nothing in-tree passes true here. I don't know why this is,
but there is a use of this internally in AdaCore's tree. I will try
to submit that patch, if it is needed. (And if not, I will come back
around and remove this.)
gdb/ChangeLog
2020-12-16 Tom Tromey <tom@tromey.com>
* parse.c (parse_exp_1, parse_expression_for_completion): Update.
(parse_exp_in_context): Change void_context_p to bool.
* language.h (struct language_defn) <post_parser>: Change
void_context_p to bool.
* ada-lang.c (class ada_language) <post_parser>: Update.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 8f437fc..23d7a16 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -14124,7 +14124,7 @@ public: A null CONTEXT_TYPE indicates that a non-void return type is preferred. May change (expand) *EXP. */ - void post_parser (expression_up *expp, int void_context_p, int completing, + void post_parser (expression_up *expp, bool void_context_p, int completing, innermost_block_tracker *tracker) const override { struct type *context_type = NULL; |