From: hunt Date: Wed, 10 Jan 2007 15:11:10 +0000 (+0000) Subject: 2007-01-10 Martin Hunt X-Git-Tag: release-0.5.13~146 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=e7ae44425c2931f0b04a0ee553b480e7fe2c8a72;p=systemtap.git 2007-01-10 Martin Hunt * translate.cxx (mapvar::del): Call the new _stp_map_del function instead of setting to zero. --- diff --git a/ChangeLog b/ChangeLog index 5351906ba..cbd2efb9c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-01-10 Martin Hunt + + * translate.cxx (mapvar::del): Call the new _stp_map_del + function instead of setting to zero. + 2007-01-01 Frank Ch. Eigler * configure.ac: Bump version to 0.5.12 for release. diff --git a/translate.cxx b/translate.cxx index d46428f0a..58347a59f 100644 --- a/translate.cxx +++ b/translate.cxx @@ -514,13 +514,8 @@ struct mapvar } string del (vector 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 const & indices) const