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 1/4] Fortran, typeprint: Fix wrong indentation when ptype nested structures.


Bernhard Heckel <bernhard.heckel@intel.com> writes:

> diff --git a/gdb/testsuite/gdb.fortran/whatis_type.exp b/gdb/testsuite/gdb.fortran/whatis_type.exp
> index af897a6..edaf4fd 100644
> --- a/gdb/testsuite/gdb.fortran/whatis_type.exp
> +++ b/gdb/testsuite/gdb.fortran/whatis_type.exp
> @@ -39,15 +39,25 @@ set t1_i "$int :: t1_i"
>  set t1_r "$real :: t1_r"
>  
>  gdb_test "whatis t1" \
> -  "type = Type t1\r\n${t1_i}\r\n${t1_r}\r\nEnd Type t1" \
> -  "whatis t1"
> +    [multi_line "type = Type t1" \
> +	"    $t1_i" \
> +	"    $t1_r" \
> +	"End Type t1"]
> +
>  gdb_test "whatis t1v" \
> -  "type = Type t1\r\n${t1_i}\r\n${t1_r}\r\nEnd Type t1" \
> -  "whatis t1v"
> +    [multi_line "type = Type t1" \
> +	"    $t1_i" \
> +	"    $t1_r" \
> +	"End Type t1"]
>  
>  gdb_test "ptype t1" \
> -  "type = Type t1\r\n    ${t1_i}\r\n    ${t1_r}\r\nEnd Type t1" \
> -  "ptype t1"
> +    [multi_line "type = Type t1" \
> +	"    $t1_i" \
> +	"    $t1_r" \
> +	"End Type t1"]
> +
>  gdb_test "ptype t1v" \
> -  "type = Type t1\r\n    ${t1_i}\r\n    ${t1_r}\r\nEnd Type t1" \
> -  "ptype t1v"
> +    [multi_line "type = Type t1" \
> +	"    $t1_i" \
> +	"    $t1_r" \
> +	"End Type t1"]

Could you please split your patch to two parts?  The first part is to
change test case using multi_line, and the second part is to adjust the
indentation of expected output in the test.

Looks your patch only affects the output of "whatis".

-- 
Yao (éå)


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