This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 0/2] Two Fortran specific patches for printing data types
- From: Christoph Weinmann <christoph dot t dot weinmann at intel dot com>
- To: tromey at redhat dot com
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 13 Sep 2013 15:36:21 +0200
- Subject: [PATCH v2 0/2] Two Fortran specific patches for printing data types
- Authentication-results: sourceware.org; auth=none
This series solves two issues with printing data types in Fortran.
The first patch fixes the output indentation when printing user-defined types
with pointers. The second patch fixes PR 15326, an infinite recursion when
printing a recursively nested user-defined type.
V2 adresses indentation and changelog entries, and adds test cases for each
patch.
Cheers,
Christoph
Frank Penczek (2):
Fixed indentation for printing Fortran types with pointers
Fix PR gdb/15326 infinite recursion when printing Fortran types
gdb/f-typeprint.c | 23 ++++++---
gdb/testsuite/gdb.fortran/ptr-indentation.exp | 53 +++++++++++++++++++++
gdb/testsuite/gdb.fortran/ptr-indentation.f90 | 33 +++++++++++++
gdb/testsuite/gdb.fortran/type-with-ptr.exp | 63 +++++++++++++++++++++++++
gdb/testsuite/gdb.fortran/type-with-ptr.f90 | 34 +++++++++++++
5 files changed, 199 insertions(+), 7 deletions(-)
create mode 100644 gdb/testsuite/gdb.fortran/ptr-indentation.exp
create mode 100644 gdb/testsuite/gdb.fortran/ptr-indentation.f90
create mode 100644 gdb/testsuite/gdb.fortran/type-with-ptr.exp
create mode 100644 gdb/testsuite/gdb.fortran/type-with-ptr.f90