Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
source/Plugins/SystemRuntime/MacOSX/AppleGetItemInfoHandler.cpp
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | if (!m_get_item_info_impl_code) { | ||||
return args_addr; | return args_addr; | ||||
} | } | ||||
} else { | } else { | ||||
LLDB_LOGF(log, "No get-item-info introspection code found."); | LLDB_LOGF(log, "No get-item-info introspection code found."); | ||||
return LLDB_INVALID_ADDRESS; | return LLDB_INVALID_ADDRESS; | ||||
} | } | ||||
// Next make the runner function for our implementation utility function. | // Next make the runner function for our implementation utility function. | ||||
Status error; | auto type_system_or_err = | ||||
TypeSystem *type_system = | |||||
thread.GetProcess()->GetTarget().GetScratchTypeSystemForLanguage( | thread.GetProcess()->GetTarget().GetScratchTypeSystemForLanguage( | ||||
nullptr, eLanguageTypeC); | eLanguageTypeC); | ||||
if (auto err = type_system_or_err.takeError()) { | |||||
LLDB_LOG_ERROR(log, std::move(err), | |||||
"Error inseting get-item-info function"); | |||||
return args_addr; | |||||
} | |||||
CompilerType get_item_info_return_type = | CompilerType get_item_info_return_type = | ||||
type_system->GetBasicTypeFromAST(eBasicTypeVoid).GetPointerType(); | type_system_or_err->GetBasicTypeFromAST(eBasicTypeVoid) | ||||
.GetPointerType(); | |||||
Status error; | |||||
get_item_info_caller = m_get_item_info_impl_code->MakeFunctionCaller( | get_item_info_caller = m_get_item_info_impl_code->MakeFunctionCaller( | ||||
get_item_info_return_type, get_item_info_arglist, | get_item_info_return_type, get_item_info_arglist, | ||||
thread.shared_from_this(), error); | thread.shared_from_this(), error); | ||||
if (error.Fail() || get_item_info_caller == nullptr) { | if (error.Fail() || get_item_info_caller == nullptr) { | ||||
LLDB_LOGF(log, "Error Inserting get-item-info function: \"%s\".", | LLDB_LOGF(log, "Error Inserting get-item-info function: \"%s\".", | ||||
error.AsCString()); | error.AsCString()); | ||||
return args_addr; | return args_addr; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines |