aboutsummaryrefslogtreecommitdiff
path: root/gdb/expprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-01-02 10:37:15 -0700
committerTom Tromey <tromey@adacore.com>2023-01-02 10:37:15 -0700
commitce6fcad80eb594228a2e46e9362d6083881fe96d (patch)
tree717cf9caec462455c48e14134ba6fd585840a26c /gdb/expprint.c
parentde7d7cb58e6209ed11c31f635545ee2ee6ded307 (diff)
downloadgdb-ce6fcad80eb594228a2e46e9362d6083881fe96d.zip
gdb-ce6fcad80eb594228a2e46e9362d6083881fe96d.tar.gz
gdb-ce6fcad80eb594228a2e46e9362d6083881fe96d.tar.bz2
Simplify debug_exp
debug_exp should call expression::dump rather than using the 'op' member.
Diffstat (limited to 'gdb/expprint.c')
-rw-r--r--gdb/expprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/expprint.c b/gdb/expprint.c
index a873cf8..49d840b 100644
--- a/gdb/expprint.c
+++ b/gdb/expprint.c
@@ -68,7 +68,7 @@ void
ATTRIBUTE_USED
debug_exp (struct expression *exp)
{
- exp->op->dump (gdb_stdlog, 0);
+ exp->dump (gdb_stdlog);
gdb_flush (gdb_stdlog);
}