diff options
Diffstat (limited to 'gdb/c-varobj.c')
-rw-r--r-- | gdb/c-varobj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/c-varobj.c b/gdb/c-varobj.c index 59d8b0f..b39a113 100644 --- a/gdb/c-varobj.c +++ b/gdb/c-varobj.c @@ -370,7 +370,7 @@ c_describe_child (const 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); @@ -741,7 +741,7 @@ cplus_describe_child (const 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)) { @@ -825,7 +825,7 @@ cplus_describe_child (const 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 |