From: Tom Tromey <tom@tromey.com>
To: "Jose E. Marchesi via Gdb-patches" <gdb-patches@sourceware.org>
Subject: Re: [PATCH 0/1] Integrate GNU poke in GDB
Date: Tue, 11 May 2021 12:56:32 -0600 [thread overview]
Message-ID: <87k0o56qvz.fsf@tromey.com> (raw)
In-Reply-To: <20210510151044.20829-1-jose.marchesi@oracle.com> (Jose E. Marchesi via Gdb-patches's message of "Mon, 10 May 2021 17:10:43 +0200")
>>>>> "Jose" == Jose E Marchesi via Gdb-patches <gdb-patches@sourceware.org> writes:
Jose> It allows the GDB user to execute Poke code from within the
Jose> debugger with access to the target memory, types and values.
Jose> - Eventually we will probably want to ship some prewritten Poke
Jose> code in a pickle gdb.pk. Would $pkddatadir/poke/ be a good
Jose> location for Poke code distributed with GDB?
Like what kind of thing are you thinking?
Jose> - How can I demangle C++ identifiers? And how can I detect when
Jose> a given type is a C++ one that needs demangling?
Type names normally aren't mangled.
Jose> - There are three commands:
Jose> poke STR
Jose> poke-add-type EXPR
Jose> poke-add-types REGEXP
Jose> poke-dump-types
Jose> All three commands make sure to start the poke incremental
Jose> compiler if it isn't running already.
It's maybe more gdb-ish to make one command and use subcommands.
I wonder if you considered implementing this by writing some Python to
glue Poke into gdb. This would have some advantages:
* It wouldn't be a configure-time decision by whoever built gdb -- if
you have Poke, it could "just work". (Of course this assumes gdb is
built with Python, but that's the norm for distros.)
* How Poke is glued in and how the commands work would be controlled by
ordinary Poke patches, rather than having to go through GDB. This
would let you evolve the GDB integration along with the library.
Tom
next prev parent reply other threads:[~2021-05-11 18:56 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-10 15:10 Jose E. Marchesi via Gdb-patches
2021-05-10 15:10 ` [PATCH 1/1] " Jose E. Marchesi via Gdb-patches
2021-05-10 16:56 ` Eli Zaretskii via Gdb-patches
2021-05-10 18:49 ` Jose E. Marchesi via Gdb-patches
2021-05-10 18:52 ` Eli Zaretskii via Gdb-patches
2021-05-11 7:33 ` Andrew Burgess
2021-05-11 13:07 ` Jose E. Marchesi via Gdb-patches
2021-05-12 8:52 ` Andrew Burgess
2021-05-12 10:14 ` Jose E. Marchesi via Gdb-patches
2021-05-13 16:59 ` Tom Tromey
2021-05-10 18:39 ` [PATCH 0/1] " Simon Marchi via Gdb-patches
2021-05-10 20:07 ` Jose E. Marchesi via Gdb-patches
2021-05-11 6:25 ` Andrew Burgess
2021-05-13 17:04 ` Tom Tromey
2021-05-11 18:56 ` Tom Tromey [this message]
2021-05-12 8:06 ` Jose E. Marchesi via Gdb-patches
2021-05-13 15:52 ` Tom Tromey
2021-05-14 20:52 ` Jose E. Marchesi via Gdb-patches
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=87k0o56qvz.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@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