Changeset View
Changeset View
Standalone View
Standalone View
lldb/source/Plugins/Process/Windows/Common/LocalDebugDelegate.cpp
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | if (ProcessWindowsSP process = GetProcessPointer()) | ||||
process->OnLoadDll(module_spec, module_addr); | process->OnLoadDll(module_spec, module_addr); | ||||
} | } | ||||
void LocalDebugDelegate::OnUnloadDll(lldb::addr_t module_addr) { | void LocalDebugDelegate::OnUnloadDll(lldb::addr_t module_addr) { | ||||
if (ProcessWindowsSP process = GetProcessPointer()) | if (ProcessWindowsSP process = GetProcessPointer()) | ||||
process->OnUnloadDll(module_addr); | process->OnUnloadDll(module_addr); | ||||
} | } | ||||
void LocalDebugDelegate::OnDebugString(const std::string &string) { | void LocalDebugDelegate::OnDebugString(lldb::addr_t debug_string_addr, | ||||
bool is_unicode, | |||||
uint16_t length_lower_word) { | |||||
if (ProcessWindowsSP process = GetProcessPointer()) | if (ProcessWindowsSP process = GetProcessPointer()) | ||||
process->OnDebugString(string); | process->OnDebugString(debug_string_addr, is_unicode, length_lower_word); | ||||
} | } | ||||
void LocalDebugDelegate::OnDebuggerError(const Status &error, uint32_t type) { | void LocalDebugDelegate::OnDebuggerError(const Status &error, uint32_t type) { | ||||
if (ProcessWindowsSP process = GetProcessPointer()) | if (ProcessWindowsSP process = GetProcessPointer()) | ||||
process->OnDebuggerError(error, type); | process->OnDebuggerError(error, type); | ||||
} | } | ||||
ProcessWindowsSP LocalDebugDelegate::GetProcessPointer() { | ProcessWindowsSP LocalDebugDelegate::GetProcessPointer() { | ||||
ProcessSP process = m_process.lock(); | ProcessSP process = m_process.lock(); | ||||
return std::static_pointer_cast<ProcessWindows>(process); | return std::static_pointer_cast<ProcessWindows>(process); | ||||
} | } |