diff options
author | Yit Phang Khoo <khooyp@sourceware.org> | 2012-08-22 21:04:55 +0000 |
---|---|---|
committer | Yit Phang Khoo <khooyp@sourceware.org> | 2012-08-22 21:04:55 +0000 |
commit | 037bbc8eeaf8e6f3a5e185e78268aa71a1159ae7 (patch) | |
tree | 202bf8881c03b44f3eb8dedee740ab76661a338b /gdb/Makefile.in | |
parent | 406b1477f51e5a4f953f2792fb14e5c3cf1dc1df (diff) | |
download | gdb-037bbc8eeaf8e6f3a5e185e78268aa71a1159ae7.zip gdb-037bbc8eeaf8e6f3a5e185e78268aa71a1159ae7.tar.gz gdb-037bbc8eeaf8e6f3a5e185e78268aa71a1159ae7.tar.bz2 |
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.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index bb1f0bc..5d5574e 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -280,6 +280,7 @@ SUBDIR_PYTHON_OBS = \ py-finishbreakpoint.o \ py-frame.o \ py-function.o \ + py-gdb-readline.o \ py-inferior.o \ py-infthread.o \ py-lazy-string.o \ @@ -312,6 +313,7 @@ SUBDIR_PYTHON_SRCS = \ python/py-finishbreakpoint.c \ python/py-frame.c \ python/py-function.c \ + python/py-gdb-readline.c \ python/py-inferior.c \ python/py-infthread.c \ python/py-lazy-string.c \ @@ -2083,6 +2085,10 @@ py-function.o: $(srcdir)/python/py-function.c $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-function.c $(POSTCOMPILE) +py-gdb-readline.o: $(srcdir)/python/py-gdb-readline.c + $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-gdb-readline.c + $(POSTCOMPILE) + py-inferior.o: $(srcdir)/python/py-inferior.c $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-inferior.c $(POSTCOMPILE) |