diff options
author | Pedro Alves <palves@redhat.com> | 2014-10-13 21:45:40 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-10-13 23:06:05 +0100 |
commit | 58da9bdea03d5b96943696b6c7e69bef6ef419cc (patch) | |
tree | ffbc1dd1152339a9f1289e36f66de3929023d9c6 /gdb/c-varobj.c | |
parent | fabd3880c70c46c1511e2b778b002fa64e521852 (diff) | |
download | binutils-gdb-palves/cxx-conversion-attempt.tar.gz |
Make GDB build with both g++ and gcc, on x86_64 Fedora 20palves/cxx-conversion-attempt
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 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 |