aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectGUI.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-04-27 06:19:42 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-04-27 06:19:42 +0000
commit57179860a0547afc482171ef304976c7761a3fd8 (patch)
treed62c85bdab803d12e4f0bc7310a441fe70db01e1 /lldb/source/Commands/CommandObjectGUI.cpp
parent40dfc3920e022beb920b7236bfdcce0e037d8e0e (diff)
downloadllvm-57179860a0547afc482171ef304976c7761a3fd8.zip
llvm-57179860a0547afc482171ef304976c7761a3fd8.tar.gz
llvm-57179860a0547afc482171ef304976c7761a3fd8.tar.bz2
[CommandObject] Use GetDebugger() helper method (NFC)
In r359354 a GetDebugger() method was added to the CommandObject class, so that we didn't have to go through the command interpreter to obtain the script interpreter. This patch simplifies other call sites where m_interpreter.GetDebugger() was used, and replaces them with a shorter call to the new method. llvm-svn: 359373
Diffstat (limited to 'lldb/source/Commands/CommandObjectGUI.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectGUI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectGUI.cpp b/lldb/source/Commands/CommandObjectGUI.cpp
index 48046cd..21ed510 100644
--- a/lldb/source/Commands/CommandObjectGUI.cpp
+++ b/lldb/source/Commands/CommandObjectGUI.cpp
@@ -26,7 +26,7 @@ CommandObjectGUI::~CommandObjectGUI() {}
bool CommandObjectGUI::DoExecute(Args &args, CommandReturnObject &result) {
#ifndef LLDB_DISABLE_CURSES
if (args.GetArgumentCount() == 0) {
- Debugger &debugger = m_interpreter.GetDebugger();
+ Debugger &debugger = GetDebugger();
lldb::StreamFileSP input_sp = debugger.GetInputFile();
if (input_sp && input_sp->GetFile().GetIsRealTerminal() &&