public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: "Jose E. Marchesi" <jose.marchesi@oracle.com>
To: Tom Tromey <tom@tromey.com>
Cc: "Jose E. Marchesi via Gdb-patches" <gdb-patches@sourceware.org>
Subject: Re: [PATCH 0/1] Integrate GNU poke in GDB
Date: Fri, 14 May 2021 22:52:40 +0200	[thread overview]
Message-ID: <87r1i911if.fsf@oracle.com> (raw)
In-Reply-To: <875yzm6373.fsf@tromey.com> (Tom Tromey's message of "Thu, 13 May 2021 09:52:48 -0600")


>>>>>> "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.

Ok, I will go with a) using that strategy.

> 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.

That's pefectly fine.  I have contributed to GDB before.

> For example, do you have a gdb copyright assignment in place?  We can't
> accept your patch until that's done.

I can contribute it under my employer's assignment.

I will sign a personal assignment for GDB anyway; I looked in fencepost
and I don't have one in place.  It is super fast and easy to do so
nowadays using PDF documents (at least from Germany.)

Thanks!

      reply	other threads:[~2021-05-14 20:52 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-10 15:10 Jose E. Marchesi
2021-05-10 15:10 ` [PATCH 1/1] " Jose E. Marchesi
2021-05-10 16:56   ` Eli Zaretskii
2021-05-10 18:49     ` Jose E. Marchesi
2021-05-10 18:52       ` Eli Zaretskii
2021-05-11  7:33   ` Andrew Burgess
2021-05-11 13:07     ` Jose E. Marchesi
2021-05-12  8:52       ` Andrew Burgess
2021-05-12 10:14         ` Jose E. Marchesi
2021-05-13 16:59   ` Tom Tromey
2021-05-10 18:39 ` [PATCH 0/1] " Simon Marchi
2021-05-10 20:07   ` Jose E. Marchesi
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
2021-05-13 15:52     ` Tom Tromey
2021-05-14 20:52       ` Jose E. Marchesi [this message]

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=87r1i911if.fsf@oracle.com \
    --to=jose.marchesi@oracle.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tom@tromey.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).