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

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ce6fcad80eb594228a2e46e9362d6083881fe96d

commit ce6fcad80eb594228a2e46e9362d6083881fe96d
Author: Tom Tromey <tromey@adacore.com>
Date:   Mon Jan 2 10:37:15 2023 -0700

    Simplify debug_exp
    
    debug_exp should call expression::dump rather than using the 'op'
    member.

Diff:
---
 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);
 }

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

only message in thread, other threads:[~2023-01-02 17:39 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:39 [binutils-gdb] 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).