This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 2/2] Fix PR gdb/15326 infinite recursion when printing Fortran types
- From: Tom Tromey <tromey at redhat dot com>
- To: Christoph Weinmann <christoph dot t dot weinmann at intel dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 23 Sep 2013 14:31:22 -0600
- Subject: Re: [PATCH v2 2/2] Fix PR gdb/15326 infinite recursion when printing Fortran types
- Authentication-results: sourceware.org; auth=none
- References: <1379079383-20685-1-git-send-email-christoph dot t dot weinmann at intel dot com> <1379079383-20685-3-git-send-email-christoph dot t dot weinmann at intel dot com>
>>>>> "Christoph" == Christoph Weinmann <christoph.t.weinmann@intel.com> writes:
Christoph> testsuite/
Christoph> * gdb.fortran/type-with-ptr.f90: Add Fortran example
Christoph> to test recursion caused by pointers in user-defined types.
Christoph> * gdb.fortran/type-with-ptr.exp: Add test case for
Christoph> recursion.
Christoph> +# Check for recursion when printing pointers in user-defined types
Christoph> +set test "type-printing for user-defined type with pointers"
Christoph> +gdb_test_multiple "whatis ta" $test {
gdb_test is preferable here too. It's simpler to use and to read.
Tom