This is the mail archive of the gdb@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]

Collecting description of types from symbol table


I would like to dump the collect the output of the "ptype" command for
all possible types that gdb is aware of.

For example, the following output is very useful when debugging the
kernel, and I would like to collect the output of all such types in
the kernel for reference.   Could someone tell me rough ideas of how
this is stored in the executable, and how to dump this?

(gdb) ptype raw_spinlock_t
type = struct raw_spinlock {
    arch_spinlock_t raw_lock;
    unsigned int magic;
    unsigned int owner_cpu;
    void *owner;
    struct lockdep_map dep_map;
}

Thanks,
-- 
Vimal


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