Make the "python" command resemble the standard Python interpreter

Doug Evans dje@google.com
Thu Jan 12 18:06:00 GMT 2012


On Thu, Jan 12, 2012 at 9:47 AM,  <Paul_Koning@dell.com> wrote:
>>...
>>> - I may want a script that invokes python interactively.
>>> - How do I write a gdb macro that invokes the python repl?
>>>
>>> Solve those problems, and provide a migration path away from the old
>>> behaviour, and then you've got something.
>>
>>As a strawman, a new command, python-foo, could be provided [python-code?  python-script?] that had the "old" behaviour.
>
> Nice solution.

btw, would we ever want to pass options to the python repl?
If that might ever occur, then we don't want python with arguments to
be the old behaviour.



More information about the Gdb-patches mailing list