diff options
author | Ken Werner <ken.werner@de.ibm.com> | 2010-08-11 16:48:26 +0000 |
---|---|---|
committer | Ken Werner <ken.werner@de.ibm.com> | 2010-08-11 16:48:26 +0000 |
commit | 7346b668d73fe13b9b07b805379ff0e03d3aef5e (patch) | |
tree | eb5fbe1c80b3888b5cff8410b6a7de90699b36f7 /gdb/value.c | |
parent | 3e4c12352587411b09071bd92002d481cebb8f1d (diff) | |
download | gdb-7346b668d73fe13b9b07b805379ff0e03d3aef5e.zip gdb-7346b668d73fe13b9b07b805379ff0e03d3aef5e.tar.gz gdb-7346b668d73fe13b9b07b805379ff0e03d3aef5e.tar.bz2 |
gdb/ChangeLog:* gdb/valarith.c (vector_binop): New function.(scalar_binop): Likewise.(value_binop): Call scalar_binop or vector_binop depending on the types.* gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.(evaluate_subexp_with_coercion): Add vector check to not convert vectorsto pointers.* gdb/value.c (coerce_array): Add vector check to not coerce vectors.testsuite/ChangeLog:* gdb.base/Makefile.in (EXECUTABLES): Add gnu_vector.* gdb.base/gnu_vector.c: New File.* gdb.base/gnu_vector.exp: Likewise.
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/value.c b/gdb/value.c index d552402..b65ba32 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -2407,7 +2407,7 @@ coerce_array (struct value *arg) switch (TYPE_CODE (type)) { case TYPE_CODE_ARRAY: - if (current_language->c_style_arrays) + if (!TYPE_VECTOR (type) && current_language->c_style_arrays) arg = value_coerce_array (arg); break; case TYPE_CODE_FUNC: |