| /openbsd-src/gnu/llvm/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/ |
| H A D | DynamicLoaderPOSIXDYLD.cpp | 76 m_process->GetTarget().RemoveBreakpointByID(m_dyld_bid); in ~DynamicLoaderPOSIXDYLD() 84 m_process ? m_process->GetID() : LLDB_INVALID_PROCESS_ID); in DidAttach() 85 m_auxv = std::make_unique<AuxVector>(m_process->GetAuxvData()); in DidAttach() 89 __FUNCTION__, m_process ? m_process->GetID() : LLDB_INVALID_PROCESS_ID); in DidAttach() 101 m_process ? m_process->GetID() : LLDB_INVALID_PROCESS_ID, in DidAttach() 116 Target &target = m_process->GetTarget(); in DidAttach() 135 m_process ? m_process->GetID() : LLDB_INVALID_PROCESS_ID, in DidAttach() 143 m_process->GetTarget().ModulesDidLoad(module_list); in DidAttach() 153 m_process ? m_process->GetID() : LLDB_INVALID_PROCESS_ID); in DidAttach() 174 m_auxv = std::make_unique<AuxVector>(m_process->GetAuxvData()); in DidLaunch() [all …]
|
| H A D | DYLDRendezvous.cpp | 29 : m_process(process), m_rendezvous_addr(LLDB_INVALID_ADDRESS), in DYLDRendezvous() 43 if (!m_process) { in ResolveRendezvousAddress() 50 info_location = m_process->GetImageInfoAddress(); in ResolveRendezvousAddress() 56 Target *target = &m_process->GetTarget(); in ResolveRendezvousAddress() 95 __FUNCTION__, m_process->GetAddressByteSize(), info_location); in ResolveRendezvousAddress() 97 info_addr = m_process->ReadPointerFromMemory(info_location, error); in ResolveRendezvousAddress() 116 if (m_process) { in UpdateExecutablePath() 118 Module *exe_mod = m_process->GetTarget().GetExecutableModulePointer(); in UpdateExecutablePath() 142 address_size = m_process->GetAddressByteSize(); in Resolve() 243 m_process->GetLoadedModuleList(); in UpdateSOEntriesFromRemote() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/SystemRuntime/MacOSX/ |
| H A D | SystemRuntimeMacOSX.cpp | 108 if (m_process->IsAlive() && LLDB_BREAK_ID_IS_VALID(m_break_id)) in Clear() 109 m_process->ClearBreakpointSiteByID(m_break_id); in Clear() 112 m_process = nullptr; in Clear() 129 m_process->ReadPointerFromMemory(dispatch_qaddr, error); in GetQueueNameFromThreadQAddress() 137 m_process->ReadPointerFromMemory(pointer_to_label_address, error); in GetQueueNameFromThreadQAddress() 139 m_process->ReadCStringFromMemory(label_addr, dispatch_queue_name, in GetQueueNameFromThreadQAddress() 149 m_process->ReadMemory(label_addr, &dispatch_queue_name[0], in GetQueueNameFromThreadQAddress() 164 m_process->ReadPointerFromMemory(dispatch_qaddr, error); in GetLibdispatchQueueAddressFromThreadQAddress() 180 uint64_t width = m_process->ReadUnsignedIntegerFromMemory( in GetQueueKind() 250 m_process->ReadPointerFromMemory(dispatch_qaddr, error); in GetQueueIDFromThreadQAddress() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Host/windows/ |
| H A D | HostProcessWindows.cpp | 42 if (m_process == nullptr) in Terminate() 45 if (!::TerminateProcess(m_process, 0)) in Terminate() 52 return (m_process == LLDB_INVALID_PROCESS) ? -1 : ::GetProcessId(m_process); in GetProcessId() 56 if (m_process == nullptr) in IsRunning() 60 if (!::GetExitCodeProcess(m_process, &code)) in IsRunning() 85 if (::DuplicateHandle(GetCurrentProcess(), m_process, GetCurrentProcess(), in StartMonitoring() 97 if (m_owns_handle && m_process != LLDB_INVALID_PROCESS) in Close() 98 ::CloseHandle(m_process); in Close() 99 m_process = nullptr; in Close()
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/DynamicLoader/Windows-DYLD/ |
| H A D | DynamicLoaderWindowsDYLD.cpp | 69 module_sp = m_process->GetTarget().GetOrCreateModule(module_spec, in OnLoadModule() 79 m_process->GetTarget().ModulesDidLoad(module_list); in OnLoadModule() 84 if (!m_process->GetTarget().ResolveLoadAddress(module_addr, resolved_addr)) in OnUnloadModule() 93 m_process->GetTarget().ModulesDidUnload(module_list, false); in OnUnloadModule() 110 m_process->GetFileLoadAddress(file_spec, is_loaded, load_addr); in GetLoadAddress() 136 lldb::addr_t image_base = m_process->GetImageInfoAddress(); in DidAttach() 145 m_process->GetTarget().ModulesDidLoad(module_list); in DidAttach() 146 auto error = m_process->LoadModules(); in DidAttach() 165 m_process->GetTarget().ModulesDidLoad(module_list); in DidLaunch() 166 auto error = m_process->LoadModules(); in DidLaunch() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/ |
| H A D | DynamicLoaderMacOSXDYLD.cpp | 108 m_process->GetTarget().RemoveBreakpointByID(m_break_id); in ~DynamicLoaderMacOSXDYLD() 114 if (m_process) { in ProcessDidExec() 116 if (m_process->GetThreadList().GetSize() == 1) { in ProcessDidExec() 120 const addr_t shlib_addr = m_process->GetImageInfoAddress(); in ProcessDidExec() 135 ThreadSP thread_sp(m_process->GetThreadList().GetThreadAtIndex(0)); in ProcessDidExec() 163 m_process->GetTarget().RemoveBreakpointByID(m_break_id); in DoClear() 177 m_process->GetTarget().RemoveBreakpointByID(m_break_id); in ClearNotificationBreakpoint() 189 const addr_t shlib_addr = m_process->GetImageInfoAddress(); in DoInitialImageFetch() 192 m_process->GetTarget().GetArchitecture().GetByteOrder(); in DoInitialImageFetch() 196 if (m_process->ReadMemory(shlib_addr, buf, 4, error) == 4) { in DoInitialImageFetch() [all …]
|
| H A D | DynamicLoaderMacOS.cpp | 88 m_process->GetTarget().RemoveBreakpointByID(m_break_id); in ~DynamicLoaderMacOS() 90 m_process->GetTarget().RemoveBreakpointByID(m_dyld_handover_break_id); in ~DynamicLoaderMacOS() 96 if (m_process) { in ProcessDidExec() 98 if (m_process->GetThreadList().GetSize() == 1) { in ProcessDidExec() 102 lldb::addr_t image_infos_address = m_process->GetImageInfoAddress(); in ProcessDidExec() 114 ThreadSP thread_sp(m_process->GetThreadList().GetThreadAtIndex(0)); in ProcessDidExec() 143 m_process->GetTarget().RemoveBreakpointByID(m_break_id); in DoClear() 145 m_process->GetTarget().RemoveBreakpointByID(m_dyld_handover_break_id); in DoClear() 157 m_process->GetDynamicLoaderProcessState()); in IsFullyInitialized() 185 m_process->GetTarget().RemoveBreakpointByID(m_break_id); in ClearNotificationBreakpoint() [all …]
|
| H A D | DynamicLoaderDarwin.cpp | 71 PrivateInitialize(m_process); in DidAttach() 81 PrivateInitialize(m_process); in DidLaunch() 90 m_process = nullptr; in Clear() 101 Target &target = m_process->GetTarget(); in FindTargetModuleForImageInfo() 155 module_sp = m_process->ReadModuleFromMemory(image_info.file_spec, in FindTargetModuleForImageInfo() 167 if (m_process->GetStopID() == m_dyld_image_infos_stop_id) in UnloadImages() 171 Target &target = m_process->GetTarget(); in UnloadImages() 207 m_process->GetTarget().GetImages().Remove(unloaded_module_list); in UnloadImages() 208 m_dyld_image_infos_stop_id = m_process->GetStopID(); in UnloadImages() 216 Target &target = m_process->GetTarget(); in UnloadAllImages() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/Windows/Common/ |
| H A D | NativeProcessWindows.h | 143 NativeDebugDelegate(NativeProcessWindows &process) : m_process(process) {} in NativeDebugDelegate() 146 m_process.OnExitProcess(exit_code); in OnExitProcess() 150 m_process.OnDebuggerConnected(image_base); in OnDebuggerConnected() 155 return m_process.OnDebugException(first_chance, record); in OnDebugException() 159 m_process.OnCreateThread(thread); in OnCreateThread() 163 m_process.OnExitThread(thread_id, exit_code); in OnExitThread() 168 m_process.OnLoadDll(module_spec, module_addr); in OnLoadDll() 172 m_process.OnUnloadDll(module_addr); in OnUnloadDll() 176 m_process.OnDebugString(string); in OnDebugString() 180 return m_process.OnDebuggerError(error, type); in OnDebuggerError() [all …]
|
| H A D | DebuggerThread.cpp | 139 lldb::pid_t pid = m_process.GetProcessId(); in StopDebugging() 153 HostProcess process_copy = m_process; in StopDebugging() 154 lldb::process_t handle = m_process.GetNativeProcess().GetSystemHandle(); in StopDebugging() 217 m_process.GetProcessId()); in ContinueAsyncException() 224 m_process = HostProcess(); in FreeProcessHandles() 359 m_process.GetProcessId()); in HandleCreateThreadEvent() 382 m_process = HostProcess(info.hProcess); in HandleCreateProcessEvent() 383 ((HostProcessWindows &)m_process.GetNativeProcess()).SetOwnsHandle(false); in HandleCreateProcessEvent() 399 info.dwExitCode, m_process.GetProcessId()); in HandleExitThreadEvent() 408 LLDB_LOG(log, "process {0} exited with code {1}", m_process.GetProcessId(), in HandleExitProcessEvent() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Target/ |
| H A D | ThreadPlanTracer.cpp | 38 : m_process(*thread.GetProcess().get()), m_tid(thread.GetID()), in ThreadPlanTracer() 42 : m_process(*thread.GetProcess().get()), m_tid(thread.GetID()), in ThreadPlanTracer() 60 ThreadSP thread_sp = m_process.GetThreadList().FindThreadByID(m_tid); in GetThread() 100 m_process.GetTarget().GetArchitecture(), nullptr, nullptr); in GetDisassembler() 106 if (auto target_sp = m_process.CalculateTarget()) { in GetIntPointerType() 142 addr_valid = m_process.GetTarget().GetSectionLoadList().ResolveLoadAddress( in Log() 152 m_process.ReadMemory(pc, buffer, sizeof(buffer), err); in Log() 155 DataExtractor extractor(buffer, sizeof(buffer), m_process.GetByteOrder(), in Log() 156 m_process.GetAddressByteSize()); in Log() 177 m_process.GetTarget().GetDebugger().GetDisassemblyFormat(); in Log() [all …]
|
| H A D | ThreadList.cpp | 27 : ThreadCollection(), m_process(process), m_stop_id(0), in ThreadList() 31 : ThreadCollection(), m_process(rhs.m_process), m_stop_id(rhs.m_stop_id), in ThreadList() 46 m_process = rhs.m_process; in operator =() 87 m_process->UpdateThreadListIfNeeded(); in GetSize() 95 m_process->UpdateThreadListIfNeeded(); in GetThreadAtIndex() 107 m_process->UpdateThreadListIfNeeded(); in FindThreadByID() 125 m_process->UpdateThreadListIfNeeded(); in FindThreadByProtocolID() 143 m_process->UpdateThreadListIfNeeded(); in RemoveThreadByID() 163 m_process->UpdateThreadListIfNeeded(); in RemoveThreadByProtocolID() 213 m_process->UpdateThreadListIfNeeded(); in FindThreadByIndexID() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Host/posix/ |
| H A D | HostProcessPosix.cpp | 32 if (m_process == kInvalidPosixProcess) { in Signal() 38 return HostProcessPosix::Signal(m_process, signo); in Signal() 52 lldb::pid_t HostProcessPosix::GetProcessId() const { return m_process; } in GetProcessId() 55 if (m_process == kInvalidPosixProcess) in IsRunning() 65 return Host::StartMonitoringChildProcess(callback, m_process); in StartMonitoring()
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/ |
| H A D | DynamicLoaderHexagonDYLD.cpp | 109 m_process->GetTarget().RemoveBreakpointByID(m_dyld_bid); in ~DynamicLoaderHexagonDYLD() 129 m_process->SetCanJIT(false); in DidAttach() 132 m_process->SetCanInterpretFunctionCalls(true); in DidAttach() 148 m_process->GetTarget().ModulesDidLoad(module_list); in DidAttach() 164 Target &target = m_process->GetTarget(); in GetTargetExecutable() 211 Target &target = m_process->GetTarget(); in UpdateLoadedSections() 242 Target &target = m_process->GetTarget(); in UnloadSections() 266 addr_t break_addr = findSymbolAddress(m_process, dyldBpName); in SetRendezvousBreakpoint() 268 Target &target = m_process->GetTarget(); in SetRendezvousBreakpoint() 318 Process *proc = dyld_instance->m_process; in RendezvousBreakpointHit() [all …]
|
| H A D | HexagonDYLDRendezvous.cpp | 49 : m_process(process), m_rendezvous_addr(LLDB_INVALID_ADDRESS), m_current(), in HexagonDYLDRendezvous() 58 if (m_process) { in HexagonDYLDRendezvous() 59 Module *exe_mod = m_process->GetTarget().GetExecutableModulePointer(); in HexagonDYLDRendezvous() 73 address_size = m_process->GetAddressByteSize(); in Resolve() 77 cursor = info_addr = ResolveRendezvousAddress(m_process); in Resolve() 224 *dst = m_process->ReadUnsignedIntegerFromMemory(addr, size, 0, error); in ReadWord() 234 *dst = m_process->ReadPointerFromMemory(addr, error); in ReadPointer() 238 return addr + m_process->GetAddressByteSize(); in ReadPointer() 251 size = m_process->ReadMemory(addr, &c, 1, error); in ReadStringFromMemory() 292 Target &target = m_process->GetTarget(); in FindMetadata() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Core/ |
| H A D | DynamicLoader.cpp | 63 DynamicLoader::DynamicLoader(Process *process) : m_process(process) {} in DynamicLoader() 69 return m_process->GetStopOnSharedLibraryEvents(); in GetStopWhenImagesChange() 73 m_process->SetStopOnSharedLibraryEvents(stop); in SetStopWhenImagesChange() 77 Target &target = m_process->GetTarget(); in GetTargetExecutable() 119 module->SetLoadAddress(m_process->GetTarget(), base_addr, base_addr_is_offset, in UpdateLoadedSectionsCommon() 128 Target &target = m_process->GetTarget(); in UnloadSectionsCommon() 153 Target &target = m_process->GetTarget(); in FindModuleViaTarget() 282 m_process->ReadUnsignedIntegerFromMemory(addr, size_in_bytes, 0, error); in ReadUnsignedIntWithSizeInBytes() 291 addr_t value = m_process->ReadPointerFromMemory(addr, error); in ReadPointer() 300 if (m_process) in LoadOperatingSystemPlugin() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ |
| H A D | ItaniumABILanguageRuntime.cpp | 60 if (m_process && vtable_load_addr != LLDB_INVALID_ADDRESS) { in GetTypeInfoFromVTableAddress() 63 Target &target = m_process->GetTarget(); in GetTypeInfoFromVTableAddress() 448 Target &target = m_process->GetTarget(); in CreateExceptionSearchFilter() 464 Target &target = m_process->GetTarget(); in CreateExceptionBreakpoint() 476 if (!m_process) in SetExceptionBreakpoints() 498 if (!m_process) in ClearExceptionBreakpoints() 512 if (!m_process) in ExceptionBreakpointsExplainStop() 519 return m_process->GetBreakpointSiteList().BreakpointSiteContainsBreakpoint( in ExceptionBreakpointsExplainStop() 529 ScratchTypeSystemClang::GetForTarget(m_process->GetTarget()); in GetExceptionObjectForThread() 543 options.SetTimeout(m_process->GetUtilityExpressionTimeout()); in GetExceptionObjectForThread() [all …]
|
| /openbsd-src/gnu/llvm/lldb/include/lldb/Target/ |
| H A D | Runtime.h | 17 Runtime(Process *process) : m_process(process) {} in Runtime() 22 Process *GetProcess() { return m_process; } in GetProcess() 23 Target &GetTargetRef() { return m_process->GetTarget(); } in GetTargetRef() 29 Process *m_process;
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
| H A D | AppleObjCRuntime.cpp | 110 assert(m_process == process); in GetObjectDescription() 240 const ModuleList &modules = m_process->GetTarget().GetImages(); in GetPrintForDebuggerAddr() 324 const ModuleList &modules = m_process->GetTarget().GetImages(); in GetFoundationVersion() 354 m_process->shared_from_this(), module_sp); in ReadObjCLibrary() 418 m_process->GetTarget(), GetLanguageType(), catch_bp, throw_bp, in SetExceptionBreakpoints() 427 if (!m_process) in ClearExceptionBreakpoints() 441 if (!m_process) in ExceptionBreakpointsExplainStop() 448 return m_process->GetBreakpointSiteList().BreakpointSiteContainsBreakpoint( in ExceptionBreakpointsExplainStop() 453 if (!m_process) in CalculateHasNewLiteralsAndIndexing() 456 Target &target(m_process->GetTarget()); in CalculateHasNewLiteralsAndIndexing() [all …]
|
| /openbsd-src/gnu/llvm/lldb/include/lldb/Host/ |
| H A D | HostNativeProcessBase.h | 27 HostNativeProcessBase() : m_process(LLDB_INVALID_PROCESS) {} in HostNativeProcessBase() 29 : m_process(process) {} in HostNativeProcessBase() 37 lldb::process_t GetSystemHandle() const { return m_process; } in GetSystemHandle() 43 lldb::process_t m_process;
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/DynamicLoader/Static/ |
| H A D | DynamicLoaderStatic.cpp | 80 const ModuleList &module_list = m_process->GetTarget().GetImages(); in LoadAllImagesAtFileAddresses() 85 m_process->SetCanJIT(false); in LoadAllImagesAtFileAddresses() 112 if (m_process->GetTarget() in LoadAllImagesAtFileAddresses() 118 if (m_process->GetTarget().SetSectionLoadAddress( in LoadAllImagesAtFileAddresses() 131 m_process->GetTarget().ModulesDidLoad(loaded_module_list); in LoadAllImagesAtFileAddresses()
|
| /openbsd-src/gnu/llvm/lldb/tools/debugserver/source/MacOSX/ |
| H A D | MachThread.cpp | 29 : m_process(process), m_unique_id(unique_thread_id), in MachThread() 52 static_cast<void *>(&m_process), m_unique_id, m_seq_id); in MachThread() 202 task_t task = m_process->Task().TaskPort(); in InferiorThreadID() 298 if (m_process) in ProcessID() 299 return m_process->ProcessID(); in ProcessID() 367 return m_process->Breakpoints().FindByAddress(GetPC()); in CurrentBreakpoint() 597 int len = ::proc_pidinfo(m_process->ProcessID(), PROC_PIDTHREADINFO, in GetName() 632 if (m_process->ReadMemory(tident.thread_handle, 8, &addr) == 8) { in GetPThreadT() 639 if (m_process->ReadMemory(tident.thread_handle, 4, &addr) == 4) { in GetPThreadT() 678 if (m_process->ReadMemory(pthread_t_value + in GetTSDAddressForThread() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/OperatingSystem/Python/ |
| H A D | OperatingSystemPython.cpp | 124 m_process->GetID()); in GetDynamicRegisterInfo() 132 *dictionary, m_process->GetTarget().GetArchitecture()); in GetDynamicRegisterInfo() 157 Target &target = m_process->GetTarget(); in UpdateThreadList() 166 m_process->GetID()); in UpdateThreadList() 253 thread_sp = std::make_shared<ThreadMemory>(*m_process, tid, name, queue, in CreateThreadFromThreadInfo() 299 Target &target = m_process->GetTarget(); in CreateRegisterContextForThread() 386 Target &target = m_process->GetTarget(); in CreateThread() 396 ThreadList core_threads(m_process); in CreateThread() 397 ThreadList &thread_list = m_process->GetThreadList(); in CreateThread()
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/JITLoader/GDB/ |
| H A D | JITLoaderGDB.cpp | 152 m_process->GetTarget().RemoveBreakpointByID(m_jit_break_id); in ~JITLoaderGDB() 167 Target &target = m_process->GetTarget(); in DidAttach() 173 Target &target = m_process->GetTarget(); in DidLaunch() 179 if (!DidSetJITBreakpoint() && m_process->IsAlive()) in ModulesDidLoad() 208 m_process->GetTarget().CreateBreakpoint(jit_addr, true, false).get(); in SetJITBreakpoint() 273 if (m_process->GetTarget().GetArchitecture().GetAddressByteSize() == 8) in ReadJITDescriptor() 285 Target &target = m_process->GetTarget(); in ReadJITDescriptorImpl() 291 size_t bytes_read = m_process->ReadMemory(m_jit_descriptor_addr, &jit_desc, in ReadJITDescriptorImpl() 308 if (!ReadJITEntry(jit_relevant_entry, m_process, &jit_entry)) { in ReadJITDescriptorImpl() 326 module_sp = m_process->ReadModuleFromMemory( in ReadJITDescriptorImpl() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/ |
| H A D | DynamicLoaderDarwinKernel.cpp | 531 PrivateInitialize(m_process); in DidAttach() 540 PrivateInitialize(m_process); in DidLaunch() 548 if (m_process->IsAlive() && LLDB_BREAK_ID_IS_VALID(m_break_id)) in Clear() 549 m_process->ClearBreakpointSiteByID(m_break_id); in Clear() 552 m_process = nullptr; in Clear() 954 ModuleSP module_sp = m_process->GetTarget().GetExecutableModule(); in LoadKernelModuleIfNeeded() 982 &m_process->GetTarget()); in LoadKernelModuleIfNeeded() 991 m_kernel.SetProcessStopId(m_process->GetStopID()); in LoadKernelModuleIfNeeded() 1001 if (!m_kernel.LoadImageUsingMemoryModule(m_process)) { in LoadKernelModuleIfNeeded() 1002 m_kernel.LoadImageAtFileAddress(m_process); in LoadKernelModuleIfNeeded() [all …]
|