Lines Matching +defs:process +defs:name

165 uint32_t PlatformWindows::DoLoadImage(Process *process,
174 ThreadSP thread = process->GetThreadList().GetExpressionExecutionThread();
186 process->GetLoadImageUtilityFunction(this, [&]() -> std::unique_ptr<UtilityFunction> {
199 /* Convert name */
200 llvm::SmallVector<llvm::UTF16, 261> name;
201 if (!llvm::convertUTF8ToUTF16String(remote_file.GetPath(), name)) {
206 name.emplace_back(L'\0');
208 /* Inject name paramter into inferior */
210 process->AllocateMemory(name.size() * sizeof(llvm::UTF16),
215 "LoadLibrary error: unable to allocate memory for name: %s",
220 auto name_cleanup = llvm::make_scope_exit([process, injected_name]() {
221 process->DeallocateMemory(injected_name);
224 process->WriteMemory(injected_name, name.data(),
225 name.size() * sizeof(llvm::UTF16), status);
228 "LoadLibrary error: unable to write name: %s", status.AsCString());
252 process->AllocateMemory(search_paths.size() * sizeof(llvm::UTF16),
262 paths_cleanup.emplace([process, injected_paths]() {
263 process->DeallocateMemory(injected_paths);
266 process->WriteMemory(injected_paths, search_paths.data(),
282 process->AllocateMemory(injected_length + 1,
293 llvm::make_scope_exit([process, injected_module_path]() {
294 process->DeallocateMemory(injected_module_path);
298 const uint32_t word_size = process->GetAddressByteSize();
300 process->AllocateMemory(3 * word_size,
310 auto result_cleanup = llvm::make_scope_exit([process, injected_result]() {
311 process->DeallocateMemory(injected_result);
314 process->WritePointerToMemory(injected_result + word_size,
324 process->WriteScalarToMemory(injected_result + 2 * word_size,
356 ScratchTypeSystemClang::GetForTarget(process->GetTarget());
380 options.SetTimeout(process->GetUtilityExpressionTimeout());
394 lldb::addr_t token = process->ReadPointerFromMemory(injected_result, status);
404 process->ReadUnsignedIntegerFromMemory(injected_result + 2 * word_size + sizeof(unsigned),
419 process->ReadCStringFromMemory(injected_module_path, module_path, status);
429 return process->AddImageToken(token);
432 Status PlatformWindows::UnloadImage(Process *process, uint32_t image_token) {
433 const addr_t address = process->GetImagePtrFromToken(image_token);
442 EvaluateLoaderExpression(process, expression.GetData(), value);
454 process->ResetImageToken(image_token);
481 // attaching to a process. The key requirement is that when launching or
482 // attaching to a process, you must do it from the same the thread that will
484 // process. In particular, this means we can't use any of LLDB's generic
488 // Another problem is that LLDB's standard model for debugging a process
491 // argument to CreateProcess() that you're going to debug the process. So we
493 // to the process plugin, and attach operations almost go directly to the
494 // process plugin (but we hijack the events first). In essence, we
495 // encapsulate all the logic of Launching and Attaching in the process
497 // the process plugin.
509 // This is a process attach. Don't need to launch anything.
520 // We need to launch and attach to the process.
673 void * __lldb_LoadLibraryHelper(const wchar_t *name, const wchar_t *paths,
680 result->ImageBase = LoadLibraryExW(name, nullptr,
695 ProcessSP process = context.GetProcessSP();
696 Target &target = process->GetTarget();
725 parameters.PushValue(value); // name
751 Status PlatformWindows::EvaluateLoaderExpression(Process *process,
773 if (DynamicLoader *loader = process->GetDynamicLoader()) {
779 ThreadSP thread = process->GetThreadList().GetExpressionExecutionThread();
799 options.SetTimeout(process->GetUtilityExpressionTimeout());