diff options
author | Tom Tromey <tromey@adacore.com> | 2022-11-01 13:24:32 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-11-14 10:19:08 -0700 |
commit | 197073104337f2d2ce8353334b4125e61b8217c5 (patch) | |
tree | e989eeb687d69808278aa3a1f69ba0a550571bd6 /gdb/expression.h | |
parent | 1f7b42d52a8cb690c259eaa4975a608e82d7267a (diff) | |
download | fsf-binutils-gdb-197073104337f2d2ce8353334b4125e61b8217c5.zip fsf-binutils-gdb-197073104337f2d2ce8353334b4125e61b8217c5.tar.gz fsf-binutils-gdb-197073104337f2d2ce8353334b4125e61b8217c5.tar.bz2 |
Remove dump_prefix_expression
Since the expression rewrite, dump_prefix_expression has been
misnamed. This patch cleans this up by removing the function, turning
it into a method on struct expression.
Diffstat (limited to 'gdb/expression.h')
-rw-r--r-- | gdb/expression.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/expression.h b/gdb/expression.h index 3ba68a2..a56b185 100644 --- a/gdb/expression.h +++ b/gdb/expression.h @@ -208,6 +208,12 @@ struct expression return op->opcode (); } + /* Dump the expression to STREAM. */ + void dump (struct ui_file *stream) + { + op->dump (stream, 0); + } + /* Evaluate the expression. EXPECT_TYPE is the context type of the expression; normally this should be nullptr. NOSIDE controls how evaluation is performed. */ @@ -277,8 +283,6 @@ extern struct value *evaluate_subexp_do_call (expression *exp, extern const char *op_name (enum exp_opcode opcode); -extern void dump_prefix_expression (struct expression *, struct ui_file *); - /* In an OP_RANGE expression, either bound could be empty, indicating that its value is by default that of the corresponding bound of the array or string. Also, the upper end of the range can be exclusive |