X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fvarobj-iter.h;h=bc613af63c4711c039c77f56f3139a1692ad3c5b;hb=4bdb25fe6902963ca9cf91d6b2688cf888527bf8;hp=bdbf661bd8825cd95c7e64b5923d63a3aee50cbd;hpb=618f726fcb851883a0094aa7fa17003889b7189f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/varobj-iter.h b/gdb/varobj-iter.h index bdbf661bd8..bc613af63c 100644 --- a/gdb/varobj-iter.h +++ b/gdb/varobj-iter.h @@ -1,5 +1,5 @@ /* Iterator of varobj. - Copyright (C) 2013-2016 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,12 +14,15 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#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 { /* Name of this item. */ - char *name; + std::string name; /* Value of this item. */ struct value *value; @@ -70,3 +73,5 @@ struct varobj_iter_ops xfree (ITER); \ } \ } while (0) + +#endif /* VAROBJ_ITER_H */