Make the "python" command resemble the standard Python interpreter

Tom Tromey tromey@redhat.com
Fri Jan 20 21:31:00 GMT 2012


>>>>> "Yit" == Khoo Yit Phang <khooyp@cs.umd.edu> writes:

Yit> It should be possible to replace raw_input with one that works with
Yit> GDB, but that can be another patch.

Yit> Making Python's readline module work under GDB is not possible, since
Yit> it re-initializes libreadline and generally assumes that libreadline
Yit> is completely under Python's control (and libreadline itself has no
Yit> support for nesting/reentrancy).

Yit> It should also be possible to write a wrapper module around readline
Yit> that avoids conflicts with GDB, but that'll take some more work.

Would you mind filing bugs for these discoveries you've made?
That would be handy.

I didn't re-read the patches yet.  I plan to wait until your paperwork
is done; then please just re-post the latest versions with commentary.

thanks,
Tom



More information about the Gdb-patches mailing list