From: Mark Wielaard <mark@klomp.org>
To: Tom Tromey <tom@tromey.com>
Cc: Florian Weimer via Gdb <gdb@sourceware.org>,
Florian Weimer <fweimer@redhat.com>
Subject: Re: Using GDB as a Python interpreter
Date: Mon, 3 Jul 2023 22:24:21 +0200 [thread overview]
Message-ID: <20230703202421.GA11693@gnu.wildebeest.org> (raw)
In-Reply-To: <87zg4cvl6x.fsf@tromey.com>
On Mon, Jul 03, 2023 at 01:39:34PM -0600, Tom Tromey wrote:
> >>>>> "Florian" == Florian Weimer via Gdb <gdb@sourceware.org> writes:
>
> Florian> I want to run a Python script with GDB, from the shell command line,
> Florian> without having to create two files.
>
> Once upon a time, Red Hat had a patch to add a '-P' option to gdb, which
> would put it directly into Python scripting. I think maybe I wrote it
> ages ago, but then when Andrew tried to submit it upstream, I basically
> rejected it.
>
> That was a mistake on my part. IIRC he had a pretty good
> counter-argument at the time, I don't recall why I didn't recant.
Was that this?
https://inbox.sourceware.org/gdb-patches/20190721235427.21893-1-kevinb@redhat.com/
Cheers,
Mark
next prev parent reply other threads:[~2023-07-03 20:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-01 8:53 Florian Weimer
2023-07-03 7:11 ` Aktemur, Tankut Baris
2023-07-03 8:13 ` Florian Weimer
2023-07-03 19:39 ` Tom Tromey
2023-07-03 20:24 ` Mark Wielaard [this message]
2023-07-03 23:00 ` Tom Tromey
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=20230703202421.GA11693@gnu.wildebeest.org \
--to=mark@klomp.org \
--cc=fweimer@redhat.com \
--cc=gdb@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).