summaryrefslogtreecommitdiffstats
path: root/lldb/examples/python/crashlog.py
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-07-03 21:40:18 +0000
committerGreg Clayton <gclayton@apple.com>2012-07-03 21:40:18 +0000
commitf7ab038ada0a88448a71d68df7cddfff8af21d0d (patch)
tree5f92cb5bb75005a70e8250be3542b4bf03265d79 /lldb/examples/python/crashlog.py
parent0d44a504260ca64db82f46b4ba770f48a5fb9d09 (diff)
downloadbcm5719-llvm-f7ab038ada0a88448a71d68df7cddfff8af21d0d.tar.gz
bcm5719-llvm-f7ab038ada0a88448a71d68df7cddfff8af21d0d.zip
Make the interactive command interpreter build into the "crashlog" command work correctly when run inside LLDB. Before this fix the "cmd.Cmd" object was trying to read from stdin itself and it was competing without command interpreter for the bytes.
llvm-svn: 159688
Diffstat (limited to 'lldb/examples/python/crashlog.py')
-rwxr-xr-xlldb/examples/python/crashlog.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py
index 51b944a715f..2f53ad4339f 100755
--- a/lldb/examples/python/crashlog.py
+++ b/lldb/examples/python/crashlog.py
@@ -370,6 +370,7 @@ class Interactive(cmd.Cmd):
def __init__(self, crash_logs):
cmd.Cmd.__init__(self)
+ self.use_rawinput = False
self.intro = 'Interactive crashlogs prompt, type "help" to see a list of supported commands.'
self.crash_logs = crash_logs
self.prompt = '% '
OpenPOWER on IntegriCloud