From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Tom Tromey <tromey@redhat.com>
Cc: Pedro Alves <palves@redhat.com>,
Sergio Durigan Junior <sergiodj@redhat.com>,
GDB Development <gdb@sourceware.org>
Subject: Re: [URGENT] Ideas for Google Summer of Code
Date: Fri, 21 Feb 2014 19:00:00 -0000 [thread overview]
Message-ID: <20140221190032.GA13596@host2.jankratochvil.net> (raw)
In-Reply-To: <87lhx4fhn3.fsf@fleche.redhat.com>
On Fri, 21 Feb 2014 19:24:48 +0100, Tom Tromey wrote:
> There's a bit in the delightfully-named gdb/gdb-gdb.py.
> At least for me it doesn't trigger by default though.
Do you have 'set auto-load safe-path' set?
gdb -iex "set auto-load safe-path $PWD/gdb-gdb.py" -ex 'set pagination off' -ex 'b value_type' -ex r -ex finish -ex 'p *$->main_type' --args ./gdb -ex 'ptype struct main_type' ./gdb
[...]
$2 =
{name = 0x600400086a30 "int",
tag_name = 0x0,
code = TYPE_CODE_INT,
flags = [],
owner = 0x6062000e2310 (gdbarch),
target_type = 0x0,
vptr_basetype = 0x0,
type_specific_field = TYPE_SPECIFIC_NONE}
Without gdb-gdb.py it would be:
$2 = {code = TYPE_CODE_INT, flag_unsigned = 0, flag_nosign = 0, flag_stub = 0, flag_target_stub = 0, flag_static = 0, flag_prototyped = 0, flag_incomplete = 0, flag_varargs = 0, flag_vector = 0, flag_stub_supported = 0, flag_gnu_ifunc = 0, flag_fixed_instance = 0, flag_objfile_owned = 0, flag_declared_class = 0, flag_flag_enum = 0, type_specific_field = TYPE_SPECIFIC_NONE, nfields = 0, vptr_fieldno = -1, name = 0x600400086a30 "int", tag_name = 0x0, owner = {objfile = 0x6062000e2310, gdbarch = 0x6062000e2310}, target_type = 0x0, flds_bnds = {fields = 0x0, bounds = 0x0}, vptr_basetype = 0x0, type_specific = {cplus_stuff = 0x0, gnat_stuff = 0x0, floatformat = 0x0, func_stuff = 0x0}}
Jan
next prev parent reply other threads:[~2014-02-21 19:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-19 19:12 Sergio Durigan Junior
2014-02-20 7:31 ` Joel Brobecker
2014-02-20 13:48 ` Sergio Durigan Junior
2014-02-21 9:55 ` Pedro Alves
2014-02-21 18:53 ` Sergio Durigan Junior
2014-02-21 10:57 ` Pedro Alves
2014-02-21 18:24 ` Tom Tromey
2014-02-21 19:00 ` Jan Kratochvil [this message]
2014-02-21 18:54 ` Sergio Durigan Junior
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=20140221190032.GA13596@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb@sourceware.org \
--cc=palves@redhat.com \
--cc=sergiodj@redhat.com \
--cc=tromey@redhat.com \
/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