public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] Simplify debug_exp
@ 2023-01-02 17:38 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2023-01-02 17:38 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

debug_exp should call expression::dump rather than using the 'op'
member.
---
 gdb/expprint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/expprint.c b/gdb/expprint.c
index a873cf8df74..49d840be9c6 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);
 }
 
-- 
2.38.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-02 17:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-02 17:38 [pushed] Simplify debug_exp Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).