This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Make the "python" command resemble the standard Python interpreter


>>>>> "Doug" == Doug Evans <dje@google.com> writes:

Paul> Yes, but I think the benefits outweigh the small imcompatibility.

Doug> Yes and no.
Doug> - I may want a script that invokes python interactively.
Doug> - How do I write a gdb macro that invokes the python repl?

I think:

(gdb) python gdb.execute('python', from_tty = True)

This is sort of weird, but I think it is ok to require a weird command
to fill an unusual need.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]