Simplify debug_exp
authorTom Tromey <tromey@adacore.com>
Mon, 2 Jan 2023 17:37:15 +0000 (10:37 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 2 Jan 2023 17:37:15 +0000 (10:37 -0700)
debug_exp should call expression::dump rather than using the 'op'
member.

gdb/expprint.c

index a873cf8df74c2fe54aab5490367e67039f9a7f49..49d840be9c617483f2f9c56bab6353f28f22bcfc 100644 (file)
@@ -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);
 }