]> sourceware.org Git - systemtap.git/commitdiff
2007-01-10 Martin Hunt <hunt@redhat.com>
authorhunt <hunt>
Wed, 10 Jan 2007 15:11:10 +0000 (15:11 +0000)
committerhunt <hunt>
Wed, 10 Jan 2007 15:11:10 +0000 (15:11 +0000)
* translate.cxx (mapvar::del): Call the new _stp_map_del
function instead of setting to zero.

ChangeLog
translate.cxx

index 5351906ba7ac2fb8a7260409235998d154090537..cbd2efb9c722736769d74c3c8ec21cdea233311c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-10  Martin Hunt  <hunt@redhat.com>
+
+       * translate.cxx (mapvar::del): Call the new _stp_map_del
+       function instead of setting to zero.
+
 2007-01-01  Frank Ch. Eigler  <fche@redhat.com>
 
        * configure.ac: Bump version to 0.5.12 for release.
index d46428f0a39651ec8b247b2ce90e0ed00a7f1008..58347a59ff1e8829d29204d1fb99f2167bceb5db 100644 (file)
@@ -514,13 +514,8 @@ struct mapvar
   }
 
   string del (vector<tmpvar> const & indices) const
-  { 
-    if (type() == pe_string)
-      return (call_prefix("set", indices) + ", NULL)");
-    else if ((type() == pe_long) || (type() == pe_stats))
-      return (call_prefix("set", indices) + ", 0)");
-    else
-      throw semantic_error("setting a value of an unsupported map type");
+  {
+    return (call_prefix("del", indices) + ")");
   }
 
   string exists (vector<tmpvar> const & indices) const
This page took 0.045483 seconds and 5 git commands to generate.