From: Tom Tromey <tom@tromey.com>
To: "Jose E. Marchesi via Gdb-patches" <gdb-patches@sourceware.org>
Cc: Tom Tromey <tom@tromey.com>
Subject: Re: [PATCH 0/1] Integrate GNU poke in GDB
Date: Thu, 13 May 2021 09:52:48 -0600 [thread overview]
Message-ID: <875yzm6373.fsf@tromey.com> (raw)
In-Reply-To: <87bl9gnzpe.fsf@oracle.com> (Jose E. Marchesi via Gdb-patches's message of "Wed, 12 May 2021 10:06:21 +0200")
>>>>> "Jose" == Jose E Marchesi via Gdb-patches <gdb-patches@sourceware.org> writes:
Jose> poke STR
Jose> poke-add-type EXPR
Jose> poke-add-types REGEXP
Jose> poke-dump-types
>> It's maybe more gdb-ish to make one command and use subcommands.
Jose> What would be the gdb-ish way:
Jose> a) poke STR
Jose> poke add-type EXPR
Jose> poke add-types REGEXP
Jose> poke dump-types
Jose> or
Jose> b) poke STR
Jose> poke add type EXPR
Jose> poke add types REGEXP
Jose> poke dump types
Jose> Because a) will be problematic: `add-types' can be a valid Poke
Jose> expression if both `add' and `types' are defined as variables.
Jose> Doing b) would be ok I think.
Either is fine, though (b) is more of a pain to implement. If the plain
prefix command is ambiguous, you can have it work like "set", where "set X"
evaluates X, but "set var" is a subcommand to avoid the ambiguous case.
Jose> But I am not really looking forward to write Python bindings for libpoke
Jose> (or Python for anything for that matter) and even if I could recruit
Jose> someone to do that work, the stuff would need to be maintained ... poke
Jose> depending on Python, supporting future Python versions and what not,
Jose> argh no no no no :)
Just to be clear, gdb often has a high burden to get a patch in.
For example, do you have a gdb copyright assignment in place? We can't
accept your patch until that's done.
Jose> PS: If GDB supported writing plugins in C or C++ like bash does, I
Jose> wouldn't blink twice before adopting your suggestion!
I would be opposed to this. This would require stabilizing some gdb
API, which I think would be difficult and probably counter-productive.
Tom
next prev parent reply other threads:[~2021-05-13 15:52 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
2021-05-12 8:06 ` Jose E. Marchesi via Gdb-patches
2021-05-13 15:52 ` Tom Tromey [this message]
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=875yzm6373.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