aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2015-05-20 09:14:30 +0200
committerJoel Brobecker <brobecker@adacore.com>2015-05-20 09:22:46 +0200
commit1da0522ea716f4c679cc1fe85c39459417ec2749 (patch)
tree454a40ef028019f2bde7a1d0e2dcffff10502882 /gdb/ada-lang.c
parentfa0b40e5c44154f5a402bed8c31e7d8887256590 (diff)
downloadfsf-binutils-gdb-1da0522ea716f4c679cc1fe85c39459417ec2749.zip
fsf-binutils-gdb-1da0522ea716f4c679cc1fe85c39459417ec2749.tar.gz
fsf-binutils-gdb-1da0522ea716f4c679cc1fe85c39459417ec2749.tar.bz2
gdb/ada-lang.c: Rename local variable typename into type_name...
... to avoid a build failure when building with C++ compiler (when configured with --enable-build-with-cxx). We cannot use "typename" as it is a C++ reserved keyword. gdb/ChangeLog: * ada-lang.c (to_fixed_array_type): Rename local variable typename into type_name.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index f789108..782447a 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -8582,16 +8582,16 @@ to_fixed_array_type (struct type *type0, struct value *dval,
if (index_type_desc == NULL)
{
- const char *typename = ada_type_name (type0);
+ const char *type_name = ada_type_name (type0);
- if (typename != NULL)
+ if (type_name != NULL)
{
- const int len = strlen (typename);
+ const int len = strlen (type_name);
char *name = (char *) alloca (len + strlen (xa_suffix));
- if (typename[len - 1] == 'P')
+ if (type_name[len - 1] == 'P')
{
- strcpy (name, typename);
+ strcpy (name, type_name);
strcpy (name + len - 1, xa_suffix);
index_type_desc = ada_find_parallel_type_with_name (type0, name);
}