Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:yukoff:openSUSE:Leap:42.1:Backports
gdb.5469
gdb-fortran-stride-intel-2of6.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gdb-fortran-stride-intel-2of6.patch of Package gdb.5469
http://sourceware.org/ml/gdb-patches/2016-02/msg00841.html Subject: [PATCH v2 2/6] fortran: combine subarray and string computation From: Christoph Weinmann <christoph.t.weinmann@intel.com> Strings only have one dimension, but the element computation is identical to the subarray computation for ranges and indices. 2013-11-26 Christoph Weinmann <christoph.t.weinmann@intel.com> * eval.c (evaluate_subexp_standard): Call value_f90_subarray for print expressions on array and string types. Signed-off-by: Christoph Weinmann <christoph.t.weinmann@intel.com> --- gdb/eval.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/gdb/eval.c b/gdb/eval.c index c9f325f..164d7ab 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -2034,16 +2034,8 @@ evaluate_subexp_standard (struct type *expect_type, switch (code) { case TYPE_CODE_ARRAY: - return value_f90_subarray (arg1, exp, pos, nargs, noside); - case TYPE_CODE_STRING: - if (exp->elts[*pos].opcode == OP_F90_RANGE) - return value_f90_subarray (arg1, exp, pos, 1, noside); - else - { - arg2 = evaluate_subexp_with_coercion (exp, pos, noside); - return value_subscript (arg1, value_as_long (arg2)); - } + return value_f90_subarray (arg1, exp, pos, nargs, noside); case TYPE_CODE_PTR: case TYPE_CODE_FUNC: -- 2.5.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor