forked from OSchip/llvm-project
Fix broadcasters for interpreter and process:
# Fix CommandInterpreter.Broadcaster name (it should be the same as CommandInterpreter::GetStaticBroadcasterClass()) # Prevent the same error in Process.Broadcaster # Fix SBCommandInterpreter::GetBroadcasterClass (it should call CommandInterpreter::GetStaticBroadcasterClass(), was Communication::GetStaticBroadcasterClass()) llvm-svn: 232500
This commit is contained in:
parent
d58230b9dc
commit
8a00a562c5
|
@ -10,7 +10,6 @@
|
|||
#include "lldb/lldb-python.h"
|
||||
|
||||
#include "lldb/lldb-types.h"
|
||||
#include "lldb/Core/Communication.h"
|
||||
#include "lldb/Core/SourceManager.h"
|
||||
#include "lldb/Core/Listener.h"
|
||||
#include "lldb/Interpreter/CommandInterpreter.h"
|
||||
|
@ -533,7 +532,7 @@ SBCommandInterpreter::GetBroadcaster ()
|
|||
const char *
|
||||
SBCommandInterpreter::GetBroadcasterClass ()
|
||||
{
|
||||
return Communication::GetStaticBroadcasterClass().AsCString();
|
||||
return CommandInterpreter::GetStaticBroadcasterClass().AsCString();
|
||||
}
|
||||
|
||||
const char *
|
||||
|
|
|
@ -109,7 +109,7 @@ CommandInterpreter::CommandInterpreter
|
|||
ScriptLanguage script_language,
|
||||
bool synchronous_execution
|
||||
) :
|
||||
Broadcaster (&debugger, "lldb.command-interpreter"),
|
||||
Broadcaster (&debugger, CommandInterpreter::GetStaticBroadcasterClass().AsCString()),
|
||||
Properties(OptionValuePropertiesSP(new OptionValueProperties(ConstString("interpreter")))),
|
||||
IOHandlerDelegate (IOHandlerDelegate::Completion::LLDBCommand),
|
||||
m_debugger (debugger),
|
||||
|
|
|
@ -704,7 +704,7 @@ Process::Process(Target &target, Listener &listener) :
|
|||
Process::Process(Target &target, Listener &listener, const UnixSignalsSP &unix_signals_sp) :
|
||||
ProcessProperties (this),
|
||||
UserID (LLDB_INVALID_PROCESS_ID),
|
||||
Broadcaster (&(target.GetDebugger()), "lldb.process"),
|
||||
Broadcaster (&(target.GetDebugger()), Process::GetStaticBroadcasterClass().AsCString()),
|
||||
m_target (target),
|
||||
m_public_state (eStateUnloaded),
|
||||
m_private_state (eStateUnloaded),
|
||||
|
|
Loading…
Reference in New Issue