]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/Makefile.in
Enable readline in Python in a GDB-specific way and block the
authorYit Phang Khoo <khooyp@sourceware.org>
Wed, 22 Aug 2012 21:04:55 +0000 (21:04 +0000)
committerYit Phang Khoo <khooyp@sourceware.org>
Wed, 22 Aug 2012 21:04:55 +0000 (21:04 +0000)
commit037bbc8eeaf8e6f3a5e185e78268aa71a1159ae7
tree202bf8881c03b44f3eb8dedee740ab76661a338b
parent406b1477f51e5a4f953f2792fb14e5c3cf1dc1df
Enable readline in Python in a GDB-specific way and block the
standard Python readline module to prevent conflicts with GDB.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
(SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
(py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
* python/py-gdb-readline.c: New file.
* python/python-internal.h (gdbpy_initialize_gdb_readline): New
prototype.
* python/python.c (_initialize_python): Call
gdbpy_initialize_gdb_readline.
gdb/ChangeLog
gdb/Makefile.in
gdb/python/py-gdb-readline.c [new file with mode: 0644]
gdb/python/python-internal.h
gdb/python/python.c