Make the "python" command resemble the standard Python interpreter

Paul_Koning@Dell.com Paul_Koning@Dell.com
Thu Jan 12 17:51:00 GMT 2012


>...
>> - 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.

>As for migration, we *could* add python-foo as an alias for python to
>7.4 (seems safe enough) and say the "python" command will change it's behaviour in 7.5 (or some such).
>Or we could just skip the first step and just say python will change incompatibly in 7.5.
>[I don't have a preference, but I think we need to start doing this kind of thing, and this would be good practice. :-)]

I'd say one step not two, given that the population of users of the scenario you mentioned is likely to be tiny.

	paul



More information about the Gdb-patches mailing list