[PATCH 2/3] Fortran: Resolve dynamic target types of pointers.
Eli Zaretskii
eliz@gnu.org
Mon Jun 6 15:08:00 GMT 2016
> From: Bernhard Heckel <bernhard.heckel@intel.com>
> Cc: gdb-patches@sourceware.org, Bernhard Heckel <bernhard.heckel@intel.com>
> Date: Mon, 6 Jun 2016 15:37:12 +0200
>
> Dynamic target types of pointers have to be resolved before
> they can be further processed. If not, GDB will show wrong
> boundaries, size,... or even crash as it will access some
> random memory.
>
> 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
>
> gdb/Changelog:
> * NEWS: Added new fortran feature.
> * gdbtypes.c (resolve_dynamic_pointer_types): Resolve dynamic target types.
> * valops.c (address_of_value): Handle not allocated arrays.
>
> gdb/Testsuite/Changelog:
> * gdb.fortran/pointers.f90: Add dynamic variables.
> * gdb.fortran/pointers.exp: Test dynamic variables.
> * gdb.fortran/vla-value.exp: Adapt error message.
>
> ---
> gdb/NEWS | 2 ++
> gdb/gdbtypes.c | 18 +++++++++++++++
> gdb/testsuite/gdb.fortran/pointers.exp | 34 ++++++++++++++++++++++++++++
> gdb/testsuite/gdb.fortran/pointers.f90 | 38 +++++++++++++++++++++++++++++++-
> gdb/testsuite/gdb.fortran/print_type.exp | 38 +++++++++++++++++++++++++++++++-
> gdb/testsuite/gdb.fortran/vla-value.exp | 2 +-
> gdb/valops.c | 3 +++
> 7 files changed, 132 insertions(+), 3 deletions(-)
>
> diff --git a/gdb/NEWS b/gdb/NEWS
> index 3e8e7a1..bea86d3 100644
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -3,6 +3,8 @@
>
> *** Changes since GDB 7.11
>
> +* Fortran: Support pointers to dynamic types.
> +
> * Fortran: Support structures with fields of dynamic types and
> arrays of dynamic types.
The NEWS part is OK.
Thanks.
More information about the Gdb-patches
mailing list