From 8aed83b1ba6696b31250cf642512a14440501eb0 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 12 May 2017 12:19:25 -0700 Subject: [PATCH] Add function to dump expressions from gdb --- staptree.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/staptree.cxx b/staptree.cxx index dd3479a05..b5be7bd9e 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -1486,7 +1486,11 @@ ostream& operator << (ostream& o, const symboldecl& k) return o; } - +void +debug(expression *e) +{ + cout << *e << endl; +} // ------------------------------------------------------------------------ // visitors -- 2.43.5