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 3/4] Fortran, typeprint: Decrease level of details when printing elements of a structure.


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

> (gdb) ptype t3v
> type = Type t3
>     integer(kind=4) :: t3_i
>     Type t2
>         integer(kind=4) :: t2_i
>         Type t1 :: t1_n
>     End Type t2 :: t2_n
> End Type t3

Why do we print the "definition" of Type t2?  Why don't we print

 (gdb) ptype t3v
 type = Type t3
     integer(kind=4) :: t3_i
     Type t2 t2_n
 End Type t3

If I do the same in C, GDB doesn't print the definition of struct t2.

(gdb) ptype t1
type = struct t1 {
    int i;
    struct t2 t2;
}

-- 
Yao (éå)


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