summaryrefslogtreecommitdiff
path: root/gdb/c-varobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/c-varobj.c')
-rw-r--r--gdb/c-varobj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/c-varobj.c b/gdb/c-varobj.c
index 9c2860d2886..0f0deaf2630 100644
--- a/gdb/c-varobj.c
+++ b/gdb/c-varobj.c
@@ -317,7 +317,7 @@ c_describe_child (struct varobj *parent, int index,
if (cfull_expression)
{
- char *join = was_ptr ? "->" : ".";
+ const char *join = was_ptr ? "->" : ".";
*cfull_expression = xstrprintf ("(%s)%s%s", parent_expression,
join, field_name);
@@ -681,7 +681,7 @@ cplus_describe_child (struct varobj *parent, int index,
if (TYPE_CODE (type) == TYPE_CODE_STRUCT
|| TYPE_CODE (type) == TYPE_CODE_UNION)
{
- char *join = was_ptr ? "->" : ".";
+ const char *join = was_ptr ? "->" : ".";
if (CPLUS_FAKE_CHILD (parent))
{
@@ -765,7 +765,7 @@ cplus_describe_child (struct varobj *parent, int index,
if (cfull_expression)
{
- char *ptr = was_ptr ? "*" : "";
+ const char *ptr = was_ptr ? "*" : "";
/* Cast the parent to the base' type. Note that in gdb,
expression like