RFC: add ability to "source" Python code
Matt Rice
ratmice@gmail.com
Wed Feb 11 21:26:00 GMT 2009
On Wed, Feb 11, 2009 at 1:06 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>
> Also, would an arbitrary Python script necessarily do anything useful
> in GDB? Some of them probably will, but not just any one, I think.
>
Yes,
(gdb) python execfile("/home/ratmice/bar.py")
(gdb) python foo()
foo
where the foo function is defined in bar.py.
so it acts just like 'source' in a shell i would imagine.
More information about the Gdb-patches
mailing list