Re: Using GDB as a Python interpreter
Mark Wielaard <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jul 03, 2023 at 01:39:34PM -0600, Tom Tromey wrote: > >>>>> "Florian" == Florian Weimer via Gdb <[email protected]> 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/[email protected]/ Cheers, Mark