projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatic date update in version.in
[deliverable/binutils-gdb.git]
/
gdb
/
ada-varobj.c
diff --git
a/gdb/ada-varobj.c
b/gdb/ada-varobj.c
index a4d553d378625a707041a597d9a13ec022218cee..a86ac188da8afeafdfc0d078bf172b5ac4c24b9f 100644
(file)
--- a/
gdb/ada-varobj.c
+++ b/
gdb/ada-varobj.c
@@
-1,6
+1,6
@@
/* varobj support for Ada.
/* varobj support for Ada.
- Copyright (C) 2012-20
19
Free Software Foundation, Inc.
+ Copyright (C) 2012-20
20
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-624,6
+624,7
@@
ada_varobj_describe_simple_array_child (struct value *parent_value,
of the array index type when such type qualification is
needed. */
const char *index_type_name = NULL;
of the array index type when such type qualification is
needed. */
const char *index_type_name = NULL;
+ std::string decoded;
/* If the index type is a range type, find the base type. */
while (TYPE_CODE (index_type) == TYPE_CODE_RANGE)
/* If the index type is a range type, find the base type. */
while (TYPE_CODE (index_type) == TYPE_CODE_RANGE)
@@
-634,7
+635,10
@@
ada_varobj_describe_simple_array_child (struct value *parent_value,
{
index_type_name = ada_type_name (index_type);
if (index_type_name)
{
index_type_name = ada_type_name (index_type);
if (index_type_name)
- index_type_name = ada_decode (index_type_name);
+ {
+ decoded = ada_decode (index_type_name);
+ index_type_name = decoded.c_str ();
+ }
}
if (index_type_name != NULL)
}
if (index_type_name != NULL)
This page took
0.023877 seconds
and
4
git commands to generate.