Make gdb.mi/user-selected-context-sync.exp use proc_with_prefix
[deliverable/binutils-gdb.git] / gdb / varobj-iter.h
index 567f21ada00c9753b792276542df5cbe0fbb5b24..1e7889be0294d0f35f5b311a81218d847b8d1a3c 100644 (file)
@@ -1,5 +1,5 @@
 /* Iterator of varobj.
-   Copyright (C) 2013-2015 Free Software Foundation, Inc.
+   Copyright (C) 2013-2016 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
@@ -19,7 +19,7 @@
 typedef struct varobj_item
 {
   /* Name of this item.  */
-  char *name;
+  std::string name;
 
   /* Value of this item.  */
   struct value *value;
@@ -67,6 +67,6 @@ struct varobj_iter_ops
       if ((ITER) != NULL)                     \
        {                                      \
          (ITER)->ops->dtor (ITER);            \
-         xfree (ITER);                \
+         delete (ITER);                       \
        }                                      \
     } while (0)
This page took 0.024863 seconds and 4 git commands to generate.