lldb/SOURCES/0001-Don-t-import-readline-module.patch
2021-10-08 13:24:23 +00:00

42 lines
1.2 KiB
Diff

From 53fca9b6d37660280ffbd02255bf4d05c96b0055 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar@redhat.com>
Date: Thu, 3 Oct 2019 20:49:43 -0700
Subject: [PATCH] Don't import readline module
Loading the module causes python to segfault. Disabling for now until
we can find a fix.
---
lldb/source/Interpreter/embedded_interpreter.py | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/lldb/source/Interpreter/embedded_interpreter.py b/lldb/source/Interpreter/embedded_interpreter.py
index 8a1195d..f534bdb 100644
--- a/lldb/source/Interpreter/embedded_interpreter.py
+++ b/lldb/source/Interpreter/embedded_interpreter.py
@@ -7,21 +7,7 @@ import code
import lldb
import traceback
-try:
- import readline
- import rlcompleter
-except ImportError:
- have_readline = False
-except AttributeError:
- # This exception gets hit by the rlcompleter when Linux is using
- # the readline suppression import.
- have_readline = False
-else:
- have_readline = True
- if 'libedit' in readline.__doc__:
- readline.parse_and_bind('bind ^I rl_complete')
- else:
- readline.parse_and_bind('tab: complete')
+have_readline = False
g_builtin_override_called = False
--
1.8.3.1