[v8,0/1] Fix arrays of variable length strings for FORTRAN

Message ID 20241025143746.1974-1-abdul.b.ijaz@intel.com
Headers
Series Fix arrays of variable length strings for FORTRAN |

Message

Abdul Basit Ijaz Oct. 25, 2024, 2:37 p.m. UTC
  From: "Ijaz, Abdul B" <abdul.b.ijaz@intel.com>

Hi All,

This patch fix arrays of variable length strings for FORTRAN.

V7 of this series can be found here:
https://sourceware.org/pipermail/gdb-patches/2024-October/212292.html

Changes since V7:
* Move TYPE_CODE_STRING from c-valueprint to generic_value_print as per
  the feedback from Tom in:
  https://sourceware.org/pipermail/gdb-patches/2024-October/212451.html
* c-valueprint already has better handling to print string till the first
  null character instead of printing each character like an array.  So,
  accordingly same handling is done in generic_value_print for strings.

Following test configurations are tested and no regression is seen:
gcc64/gcc32/native-gdbserver.

I'm looking forward to comments.

Best Regards,
Abdul Basit

Ijaz, Abdul B (1):
  fortran: Fix arrays of variable length strings for FORTRAN

 gdb/gdbtypes.c                             | 39 +++++++++++-
 gdb/testsuite/gdb.fortran/string-types.exp |  4 +-
 gdb/testsuite/gdb.fortran/vla-array.exp    | 60 ++++++++++++++++++
 gdb/testsuite/gdb.fortran/vla-array.f90    | 45 +++++++++++++
 gdb/testsuite/gdb.opt/fortran-string.exp   |  2 +-
 gdb/valprint.c                             | 74 ++++++++++++++++++++++
 6 files changed, 219 insertions(+), 5 deletions(-)
 create mode 100644 gdb/testsuite/gdb.fortran/vla-array.exp
 create mode 100644 gdb/testsuite/gdb.fortran/vla-array.f90