From 30ca414568b5981d7757559335ae0124f8810217 Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de>
Date: Fri, 16 Jan 2015 15:59:43 +0100
Subject: [PATCH] we an read back variables in expressions.

---
 pub/lib/node.cpp        | 6 ++++--
 pub/share/frida.ini     | 6 ++++++
 pub/share/frida.ini.bak | 6 ------
 3 files changed, 10 insertions(+), 8 deletions(-)
 delete mode 100644 pub/share/frida.ini.bak

diff --git a/pub/lib/node.cpp b/pub/lib/node.cpp
index 7ded4f46..a9af481f 100644
--- a/pub/lib/node.cpp
+++ b/pub/lib/node.cpp
@@ -824,8 +824,10 @@ CNodeIdf::CNodeIdf( string _idf )
 
 const RObj CNodeIdf::tree_val( const CContext& ctx ) const
 {
-    throw "unknown identifier";
-//    return RObjDble( new CObjDble( NReg::lastresult ) );
+    PObj ret = GReg->find( idf );
+    if ( !ret )
+        throw "uninitialized variable "+idf;
+    return ret;
 }
 
 void CNodeIdf::set_coord( CCoord& ret, int k ) const
diff --git a/pub/share/frida.ini b/pub/share/frida.ini
index e69de29b..b26b8ce3 100644
--- a/pub/share/frida.ini
+++ b/pub/share/frida.ini
@@ -0,0 +1,6 @@
+psdir="~/gnew/"
+pshead="/usr/local/share/frida/g3.ps"
+psdict="/usr/local/share/frida/wups11a.ps"
+psgsym="/usr/local/share/frida/gnuplot-default-symbols.eps"
+f01="pv"
+f02="pn"
diff --git a/pub/share/frida.ini.bak b/pub/share/frida.ini.bak
deleted file mode 100644
index 1ddb2210..00000000
--- a/pub/share/frida.ini.bak
+++ /dev/null
@@ -1,6 +0,0 @@
-\d psdir ~/gnew/
-\d pshead /usr/local/share/frida/g3.ps
-\d psdict /usr/local/share/frida/wups11a.ps
-\d psgsym /usr/local/share/frida/gnuplot-default-symbols.eps
-\d f01 pv
-\d f02 pn
-- 
GitLab