}
}
-void
-dump_prefix_expression (struct expression *exp, struct ui_file *stream)
-{
- exp->op->dump (stream, 0);
-}
-
/* Meant to be used in debug sessions, so don't export it in a header file. */
extern void ATTRIBUTE_USED debug_exp (struct expression *exp);
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. */
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
result->op->set_outermost ();
if (expressiondebug)
- dump_prefix_expression (result.get (), gdb_stdlog);
+ result->dump (gdb_stdlog);
if (completer != nullptr)
*completer = std::move (ps.m_completion_state);
expression_up expr = stap_parse_argument (&cur, atype, gdbarch);
if (stap_expression_debug)
- dump_prefix_expression (expr.get (), gdb_stdlog);
+ expr->dump (gdb_stdlog);
m_parsed_args.emplace_back (bitness, atype, std::move (expr));