This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 2/2] Fix PR gdb/15326 infinite recursion when printing Fortran types


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]