]> sourceware.org Git - systemtap.git/commitdiff
2008-01-24 Dave Brolley <brolley@redhat.com>
authorbrolley <brolley>
Thu, 24 Jan 2008 16:43:13 +0000 (16:43 +0000)
committerbrolley <brolley>
Thu, 24 Jan 2008 16:43:13 +0000 (16:43 +0000)
        PR 5017.
        * staptree.cxx (<cstring>): #include it.
        (required <indexable *>): Remove 'static' from instantiation and
        move instantiation to here from...
        * staptree.h: ...here.

ChangeLog
staptree.cxx
staptree.h

index 2d0281f0ea8dc0c6d10d3297466488555b3204c6..956255adbfa2dc2b3bd4f3bbcc60e9ffad261df8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-01-24  Dave Brolley  <brolley@redhat.com>
+
+       PR 5017.
+       * staptree.cxx (<cstring>): #include it.
+       (required <indexable *>): Remove 'static' from instantiation and
+       move instantiation to here from...
+       * staptree.h: ...here.
+
 2008-01-23  David Smith  <dsmith@redhat.com>
 
        PR 5661.
@@ -10,6 +18,7 @@
 
 2008-01-23  Dave Brolley  <brolley@redhat.com>
 
+       PR 5613.
        * translate.cxx (var::fini): New method.
        (c_unparser::emit_module_init): Call var::fini when deregistering
        variables without indices.
@@ -17,7 +26,7 @@
 
 2008-01-23  Frank Ch. Eigler  <fche@elastic.org>
 
-       PR 2151
+       PR 2151.
        * tapsets.cxx (dwflpp::setup): Parametrize debuginfo_path.
        * stap.1.in: Document this.
 
index ed2bc00e722382ad0591078351953eb73b6a0045..173314eef5133798f9aa64fab50d299746e77475 100644 (file)
@@ -18,6 +18,7 @@
 #include <cstring>
 #include <vector>
 #include <algorithm>
+#include <cstring>
 
 using namespace std;
 
@@ -2370,3 +2371,30 @@ deep_copy_visitor::deep_copy (expression* s)
   require <expression*> (&v, &n, s);
   return n;
 }
+
+template <> void
+require <indexable *> (deep_copy_visitor* v, indexable** dst, indexable* src)
+{
+  if (src != NULL)
+    {
+      symbol *array_src=NULL, *array_dst=NULL;
+      hist_op *hist_src=NULL, *hist_dst=NULL;
+
+      classify_indexable(src, array_src, hist_src);
+
+      *dst = NULL;
+
+      if (array_src)
+       {
+         require <symbol*> (v, &array_dst, array_src);
+         *dst = array_dst;
+       }
+      else
+       {
+         require <hist_op*> (v, &hist_dst, hist_src);
+         *dst = hist_dst;
+       }
+      assert (*dst);
+    }
+}
+
index 4584d32dff9ff5d7c57eb9bf31eb675e747b2157..5b4b56cd8baed85dc67f080c67a13bbebe0fa200 100644 (file)
@@ -846,31 +846,8 @@ require (deep_copy_visitor* v, T* dst, T src)
     }
 }
 
-template <> static void
-require <indexable *> (deep_copy_visitor* v, indexable** dst, indexable* src)
-{
-  if (src != NULL)
-    {
-      symbol *array_src=NULL, *array_dst=NULL;
-      hist_op *hist_src=NULL, *hist_dst=NULL;
-
-      classify_indexable(src, array_src, hist_src);
-
-      *dst = NULL;
-
-      if (array_src)
-       {
-         require <symbol*> (v, &array_dst, array_src);
-         *dst = array_dst;
-       }
-      else
-       {
-         require <hist_op*> (v, &hist_dst, hist_src);
-         *dst = hist_dst;
-       }
-      assert (*dst);
-    }
-}
+template <> void
+require <indexable *> (deep_copy_visitor* v, indexable** dst, indexable* src);
 
 template <typename T> void
 provide (deep_copy_visitor* v, T src)
This page took 0.041517 seconds and 5 git commands to generate.