[PATCH 1/4]: Make "python" start a standard Python prompt

Khoo Yit Phang khooyp@cs.umd.edu
Thu Jul 26 17:52:00 GMT 2012


Hi,

On Jul 26, 2012, at 1:37 PM, Tom Tromey wrote:

>>>>>> "Yit" == Khoo Yit Phang <khooyp@cs.umd.edu> writes:
> 
> Yit> Here's the updated patch that creates a new command
> Yit> "python-interactive", aliased to "pi", that starts a standard Python
> Yit> REPL; and also aliases "python" to "py".
> 
> Looks pretty good to me.
> 
> I think it could use a NEWS entry.

Do you mean I should edit the NEWS file (under "Changes since GDB 7.5")? How's the following:

* New commands
  
  ** "python-interactive [command]"
     "pi [command]"
     Starts a Python interactive prompt, or evaluate the optional 
     command and print the result of expressions.

  ** "py" is a new alias for "python"


Thanks,

Yit
July 26, 2012



More information about the Gdb-patches mailing list