Introduce basic_safe_range
[deliverable/binutils-gdb.git] / gdb / varobj-iter.h
index 34182e050ab123dab68ce7937f767a5671d87189..bc613af63c4711c039c77f56f3139a1692ad3c5b 100644 (file)
@@ -1,5 +1,5 @@
 /* Iterator of varobj.
-   Copyright (C) 2013-2017 Free Software Foundation, Inc.
+   Copyright (C) 2013-2019 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -14,6 +14,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef VAROBJ_ITER_H
+#define VAROBJ_ITER_H
+
 /* A node or item of varobj, composed of the name and the value.  */
 
 typedef struct varobj_item
@@ -67,6 +70,8 @@ struct varobj_iter_ops
       if ((ITER) != NULL)                     \
        {                                      \
          (ITER)->ops->dtor (ITER);            \
-         delete (ITER);                       \
+         xfree (ITER);                \
        }                                      \
     } while (0)
+
+#endif /* VAROBJ_ITER_H */
This page took 0.025821 seconds and 4 git commands to generate.