diff options
author | rupothar <rupesh.potharla@amd.com> | 2022-04-08 16:05:41 +0530 |
---|---|---|
committer | Kavitha Natarajan <kavitha.natarajan@amd.com> | 2022-04-25 14:58:30 +0530 |
commit | 5f59e7e0c75a35f32f11bf6998c2e3de333fe3b2 (patch) | |
tree | dec1fb834efabef863a6ce2d8f332aa793ee4c98 /bfd/elflink.c | |
parent | 2b718529b99d2ca53552558ba9b3ff3f22663795 (diff) | |
download | gdb-5f59e7e0c75a35f32f11bf6998c2e3de333fe3b2.zip gdb-5f59e7e0c75a35f32f11bf6998c2e3de333fe3b2.tar.gz gdb-5f59e7e0c75a35f32f11bf6998c2e3de333fe3b2.tar.bz2 |
gdb/fortran: Support for assumed rank zero
If a variable is passed to function in FORTRAN as an argument the
variable is treated as an array with rank zero. GDB currently does
not support the case for assumed rank 0. This patch provides support
for assumed rank 0 and updates the testcase as well.
Without patch:
Breakpoint 1, arank::sub1 (a=<error reading variable:
failed to resolve dynamic array rank>) at assumedrank.f90:11
11 PRINT *, RANK(a)
(gdb) p a
failed to resolve dynamic array rank
(gdb) p rank(a)
failed to resolve dynamic array rank
With patch:
Breakpoint 1, arank::sub1 (a=0) at assumedrank.f90:11
11 PRINT *, RANK(a)
(gdb) p a
$1 = 0
(gdb) p rank(a)
$2 = 0
Diffstat (limited to 'bfd/elflink.c')
0 files changed, 0 insertions, 0 deletions