aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksandar Ristovski <aristovski@qnx.com>2013-02-01 20:06:35 +0000
committerAleksandar Ristovski <aristovski@qnx.com>2013-02-01 20:06:35 +0000
commitf2e5f4cedf3020d6af0c5f33ce890a5ca790e1ad (patch)
tree9b2d464fb107e5db25d17b578a8db2c41b70a78f
parentc1f7d745c881cc3f9a8b52c9a4e420f0a687a848 (diff)
downloadgdb-f2e5f4cedf3020d6af0c5f33ce890a5ca790e1ad.zip
gdb-f2e5f4cedf3020d6af0c5f33ce890a5ca790e1ad.tar.gz
gdb-f2e5f4cedf3020d6af0c5f33ce890a5ca790e1ad.tar.bz2
2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
* ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'. Reference: http://sourceware.org/ml/gdb-patches/2013-01/msg00732.html
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/ada-lang.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f923d0c..5efe244 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
+
+ * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
+
2013-02-01 Pedro Alves <palves@redhat.com>
* dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index ef808c4..c202173 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -9029,7 +9029,6 @@ assign_aggregate (struct value *container,
int num_specs;
LONGEST *indices;
int max_indices, num_indices;
- int is_array_aggregate;
int i;
*pos += 3;
@@ -9054,13 +9053,11 @@ assign_aggregate (struct value *container,
lhs_type = value_type (lhs);
low_index = TYPE_ARRAY_LOWER_BOUND_VALUE (lhs_type);
high_index = TYPE_ARRAY_UPPER_BOUND_VALUE (lhs_type);
- is_array_aggregate = 1;
}
else if (TYPE_CODE (lhs_type) == TYPE_CODE_STRUCT)
{
low_index = 0;
high_index = num_visible_fields (lhs_type) - 1;
- is_array_aggregate = 0;
}
else
error (_("Left-hand side must be array or record."));