Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Vimal <j.vimal@gmail.com>
To: gdb@sourceware.org
Subject: Collecting description of types from symbol table
Date: Fri, 02 Mar 2012 02:57:00 -0000	[thread overview]
Message-ID: <CAK3Ji10Z_6CiaH_CDtEGSYG6UUugm0B85Mdb8txbcSn74dji8g@mail.gmail.com> (raw)

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


             reply	other threads:[~2012-03-02  2:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-02  2:57 Vimal [this message]
2012-03-05 16:36 ` Tom Tromey
2012-03-06 23:16   ` Vimal
2012-03-07  3:15     ` Tom Tromey
2012-03-08 16:51       ` Vimal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAK3Ji10Z_6CiaH_CDtEGSYG6UUugm0B85Mdb8txbcSn74dji8g@mail.gmail.com \
    --to=j.vimal@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox