Lines Matching defs:ProcessGDBRemote

1 //===-- ProcessGDBRemote.cpp ----------------------------------------------===//
82 #include "ProcessGDBRemote.h"
100 LLDB_PLUGIN_DEFINE(ProcessGDBRemote)
104 // ProcessGDBRemote * value (which we can get from logs or from debugging). We
134 return ProcessGDBRemote::GetPluginNameStatic();
191 llvm::StringRef ProcessGDBRemote::GetPluginDescriptionStatic() {
195 void ProcessGDBRemote::Terminate() {
196 PluginManager::UnregisterPlugin(ProcessGDBRemote::CreateInstance);
199 lldb::ProcessSP ProcessGDBRemote::CreateInstance(
204 process_sp = std::shared_ptr<ProcessGDBRemote>(
205 new ProcessGDBRemote(target_sp, listener_sp));
209 void ProcessGDBRemote::DumpPluginHistory(Stream &s) {
214 std::chrono::seconds ProcessGDBRemote::GetPacketTimeout() {
218 ArchSpec ProcessGDBRemote::GetSystemArchitecture() {
222 bool ProcessGDBRemote::CanDebug(lldb::TargetSP target_sp,
253 // ProcessGDBRemote constructor
254 ProcessGDBRemote::ProcessGDBRemote(lldb::TargetSP target_sp,
284 "ProcessGDBRemote::%s failed to listen for "
299 ProcessGDBRemote::~ProcessGDBRemote() {
316 bool ProcessGDBRemote::ParsePythonTargetDefinition(
375 void ProcessGDBRemote::BuildDynamicRegisterInfo(bool force) {
514 Status ProcessGDBRemote::DoWillLaunch(lldb_private::Module *module) {
518 Status ProcessGDBRemote::DoWillAttachToProcessWithID(lldb::pid_t pid) {
522 Status ProcessGDBRemote::DoWillAttachToProcessWithName(const char *process_name,
527 Status ProcessGDBRemote::DoConnectRemote(llvm::StringRef remote_url) {
580 "ProcessGDBRemote::%s pid %" PRIu64
600 "ProcessGDBRemote::%s pid %" PRIu64
608 Status ProcessGDBRemote::WillLaunchOrAttach() {
615 Status ProcessGDBRemote::DoLaunch(lldb_private::Module *exe_module,
620 LLDB_LOGF(log, "ProcessGDBRemote::%s() entered", __FUNCTION__);
648 "ProcessGDBRemote::%s provided with STDIO paths via "
656 "ProcessGDBRemote::%s no STDIO paths given via launch_info",
712 "ProcessGDBRemote::%s adjusted STDIO paths for local platform "
722 "ProcessGDBRemote::%s final STDIO paths after all "
806 Status ProcessGDBRemote::ConnectToDebugserver(llvm::StringRef connect_url) {
812 LLDB_LOGF(log, "ProcessGDBRemote::%s Connecting to %s", __FUNCTION__,
880 void ProcessGDBRemote::DidLaunchOrAttach(ArchSpec &process_arch) {
985 void ProcessGDBRemote::LoadStubBinaries() {
1044 void ProcessGDBRemote::MaybeLoadExecutableModule() {
1069 void ProcessGDBRemote::DidLaunch() {
1074 Status ProcessGDBRemote::DoAttachToProcessWithID(
1079 LLDB_LOGF(log, "ProcessGDBRemote::%s()", __FUNCTION__);
1102 Status ProcessGDBRemote::DoAttachToProcessWithName(
1140 llvm::Expected<TraceSupportedResponse> ProcessGDBRemote::TraceSupported() {
1144 llvm::Error ProcessGDBRemote::TraceStop(const TraceStopRequest &request) {
1148 llvm::Error ProcessGDBRemote::TraceStart(const llvm::json::Value &request) {
1153 ProcessGDBRemote::TraceGetState(llvm::StringRef type) {
1158 ProcessGDBRemote::TraceGetBinaryData(const TraceGetBinaryDataRequest &request) {
1162 void ProcessGDBRemote::DidExit() {
1167 void ProcessGDBRemote::DidAttach(ArchSpec &process_arch) {
1173 Status ProcessGDBRemote::WillResume() {
1183 Status ProcessGDBRemote::DoResume() {
1186 LLDB_LOGF(log, "ProcessGDBRemote::Resume()");
1194 ProcessGDBRemote::eBroadcastBitAsyncThreadDidExit);
1374 LLDB_LOGF(log, "ProcessGDBRemote::DoResume: Trying to resume but the "
1385 LLDB_LOGF(log, "ProcessGDBRemote::DoResume: Resume timed out.");
1391 "ProcessGDBRemote::DoResume: Broadcast continue, but the "
1401 void ProcessGDBRemote::ClearThreadIDList() {
1407 size_t ProcessGDBRemote::UpdateThreadIDsFromStopReplyThreadsValue(
1426 size_t ProcessGDBRemote::UpdateThreadPCsFromStopReplyThreadsValue(
1437 bool ProcessGDBRemote::UpdateThreadIDList() {
1501 bool ProcessGDBRemote::DoUpdateThreadList(ThreadList &old_thread_list,
1550 void ProcessGDBRemote::SetThreadPc(const ThreadSP &thread_sp, uint64_t index) {
1566 bool ProcessGDBRemote::GetThreadStopInfoFromJSON(
1591 bool ProcessGDBRemote::CalculateThreadStopInfo(ThreadGDBRemote *thread) {
1636 void ProcessGDBRemote::ParseExpeditedRegisters(
1652 ThreadSP ProcessGDBRemote::SetThreadStopInfo(
1984 ProcessGDBRemote::HandleThreadAsyncInterrupt(uint8_t signo,
2002 ProcessGDBRemote::SetThreadStopInfo(StructuredData::Dictionary *thread_dict) {
2158 StateType ProcessGDBRemote::SetThreadStopInfo(StringExtractor &stop_packet) {
2408 void ProcessGDBRemote::RefreshStateAfterStop() {
2442 Status ProcessGDBRemote::DoHalt(bool &caused_stop) {
2456 Status ProcessGDBRemote::DoDetach(bool keep_stopped) {
2459 LLDB_LOGF(log, "ProcessGDBRemote::DoDetach(keep_stopped: %i)", keep_stopped);
2465 "ProcessGDBRemote::DoDetach() detach packet sent successfully");
2468 "ProcessGDBRemote::DoDetach() detach packet send failed: %s",
2485 Status ProcessGDBRemote::DoDestroy() {
2487 LLDB_LOGF(log, "ProcessGDBRemote::DoDestroy()");
2540 void ProcessGDBRemote::SetLastStopPacket(
2546 LLDB_LOGF(log, "ProcessGDBRemote::SetLastStopPacket () - detected exec");
2557 void ProcessGDBRemote::SetUnixSignals(const UnixSignalsSP &signals_sp) {
2563 bool ProcessGDBRemote::IsAlive() {
2567 addr_t ProcessGDBRemote::GetImageInfoAddress() {
2585 void ProcessGDBRemote::WillPublicStop() {
2610 size_t ProcessGDBRemote::DoReadMemory(addr_t addr, void *buf, size_t size,
2671 bool ProcessGDBRemote::SupportsMemoryTagging() {
2676 ProcessGDBRemote::DoReadMemoryTags(lldb::addr_t addr, size_t len,
2694 Status ProcessGDBRemote::DoWriteMemoryTags(lldb::addr_t addr, size_t len,
2702 Status ProcessGDBRemote::WriteObjectFile(
2726 bool ProcessGDBRemote::HasErased(FlashRange range) {
2734 Status ProcessGDBRemote::FlashErase(lldb::addr_t addr, size_t size) {
2817 Status ProcessGDBRemote::FlashDone() {
2847 size_t ProcessGDBRemote::DoWriteMemory(addr_t addr, const void *buf,
2910 lldb::addr_t ProcessGDBRemote::DoAllocateMemory(size_t size,
2939 "ProcessGDBRemote::%s no direct stub support for memory "
2955 Status ProcessGDBRemote::DoGetMemoryRegionInfo(addr_t load_addr,
2962 std::optional<uint32_t> ProcessGDBRemote::GetWatchpointSlotCount() {
2966 std::optional<bool> ProcessGDBRemote::DoGetWatchpointReportedAfter() {
2970 Status ProcessGDBRemote::DoDeallocateMemory(lldb::addr_t addr) {
3006 size_t ProcessGDBRemote::PutSTDIN(const char *src, size_t src_len,
3017 Status ProcessGDBRemote::EnableBreakpointSite(BreakpointSite *bp_site) {
3030 "ProcessGDBRemote::EnableBreakpointSite (size_id = %" PRIu64
3037 "ProcessGDBRemote::EnableBreakpointSite (size_id = %" PRIu64
3142 Status ProcessGDBRemote::DisableBreakpointSite(BreakpointSite *bp_site) {
3149 "ProcessGDBRemote::DisableBreakpointSite (site_id = %" PRIu64
3180 "ProcessGDBRemote::DisableBreakpointSite (site_id = %" PRIu64
3208 Status ProcessGDBRemote::EnableWatchpoint(WatchpointSP wp_sp, bool notify) {
3217 LLDB_LOGF(log, "ProcessGDBRemote::EnableWatchpoint(watchID = %" PRIu64 ")",
3221 "ProcessGDBRemote::EnableWatchpoint(watchID = %" PRIu64
3303 Status ProcessGDBRemote::DisableWatchpoint(WatchpointSP wp_sp, bool notify) {
3317 "ProcessGDBRemote::DisableWatchpoint (watchID = %" PRIu64
3323 "ProcessGDBRemote::DisableWatchpoint (watchID = %" PRIu64
3363 void ProcessGDBRemote::Clear() {
3368 Status ProcessGDBRemote::DoSignal(int signo) {
3371 LLDB_LOGF(log, "ProcessGDBRemote::DoSignal (signal = %d)", signo);
3380 ProcessGDBRemote::EstablishConnectionIfNeeded(const ProcessInfo &process_info) {
3414 Status ProcessGDBRemote::LaunchAndConnectToDebugserver(
3428 const std::weak_ptr<ProcessGDBRemote> this_wp =
3429 std::static_pointer_cast<ProcessGDBRemote>(shared_from_this());
3510 void ProcessGDBRemote::MonitorDebugserverProcess(
3511 std::weak_ptr<ProcessGDBRemote> process_wp, lldb::pid_t debugserver_pid,
3520 "ProcessGDBRemote::%s(process_wp, pid=%" PRIu64
3524 std::shared_ptr<ProcessGDBRemote> process_sp = process_wp.lock();
3525 LLDB_LOGF(log, "ProcessGDBRemote::%s(process = %p)", __FUNCTION__,
3556 // Debugserver has exited we need to let our ProcessGDBRemote know that it no
3561 void ProcessGDBRemote::KillDebugserverProcess() {
3569 void ProcessGDBRemote::Initialize() {
3579 void ProcessGDBRemote::DebuggerInitialize(Debugger &debugger) {
3589 bool ProcessGDBRemote::StartAsyncThread() {
3592 LLDB_LOGF(log, "ProcessGDBRemote::%s ()", __FUNCTION__);
3601 return ProcessGDBRemote::AsyncThread();
3611 "ProcessGDBRemote::%s () - Called when Async thread was "
3618 void ProcessGDBRemote::StopAsyncThread() {
3621 LLDB_LOGF(log, "ProcessGDBRemote::%s ()", __FUNCTION__);
3636 "ProcessGDBRemote::%s () - Called when Async thread was not running.",
3640 thread_result_t ProcessGDBRemote::AsyncThread() {
3642 LLDB_LOGF(log, "ProcessGDBRemote::%s(pid = %" PRIu64 ") thread starting...",
3661 "ProcessGDBRemote::%s(pid = %" PRIu64
3669 "ProcessGDBRemote::%s(pid = %" PRIu64
3683 "ProcessGDBRemote::%s(pid = %" PRIu64
3763 "ProcessGDBRemote::%s(pid = %" PRIu64
3771 "ProcessGDBRemote::%s(pid = %" PRIu64
3780 "ProcessGDBRemote::%s(pid = %" PRIu64
3787 LLDB_LOGF(log, "ProcessGDBRemote::%s(pid = %" PRIu64 ") thread exiting...",
3794 // ProcessGDBRemote::ListProcessesMatchingName (const char *name, StringList
3813 bool ProcessGDBRemote::NewThreadNotifyBreakpointHit(
3824 Status ProcessGDBRemote::UpdateAutomaticSignalFiltering() {
3861 bool ProcessGDBRemote::StartNoticingNewThreads() {
3878 ProcessGDBRemote::NewThreadNotifyBreakpointHit, this, true);
3887 bool ProcessGDBRemote::StopNoticingNewThreads() {
3898 DynamicLoader *ProcessGDBRemote::GetDynamicLoader() {
3904 Status ProcessGDBRemote::SendEventData(const char *data) {
3922 DataExtractor ProcessGDBRemote::GetAuxvData() {
3936 ProcessGDBRemote::GetExtendedInfoForThread(lldb::tid_t tid) {
3974 StructuredData::ObjectSP ProcessGDBRemote::GetLoadedDynamicLibrariesInfos(
3985 StructuredData::ObjectSP ProcessGDBRemote::GetLoadedDynamicLibrariesInfos() {
3993 StructuredData::ObjectSP ProcessGDBRemote::GetLoadedDynamicLibrariesInfos(
4007 ProcessGDBRemote::GetLoadedDynamicLibrariesInfos_sender(
4043 StructuredData::ObjectSP ProcessGDBRemote::GetDynamicLoaderProcessState() {
4065 StructuredData::ObjectSP ProcessGDBRemote::GetSharedCacheInfo() {
4097 Status ProcessGDBRemote::ConfigureStructuredData(
4111 void ProcessGDBRemote::GetMaxMemorySize() {
4148 void ProcessGDBRemote::SetUserSpecifiedMaxMemoryTransferSize(
4169 bool ProcessGDBRemote::GetModuleSpec(const FileSpec &module_file_spec,
4183 LLDB_LOGF(log, "ProcessGDBRemote::%s - failed to get module info for %s:%s",
4192 LLDB_LOGF(log, "ProcessGDBRemote::%s - got module info for (%s:%s) : %s",
4201 void ProcessGDBRemote::PrefetchModuleSpecs(
4214 llvm::VersionTuple ProcessGDBRemote::GetHostOSVersion() {
4218 llvm::VersionTuple ProcessGDBRemote::GetHostMacCatalystVersion() {
4268 LLDB_LOG(log, "ProcessGDBRemote::ParseEnumEvalues "
4276 "ProcessGDBRemote::ParseEnumEvalues "
4282 "ProcessGDBRemote::ParseEnumEvalues Ignoring "
4338 "ProcessGDBRemote::ParseEnums Found enum type \"{0}\"",
4375 "ProcessGDBRemote::ParseFlagsFields Found field node name \"{0}\"",
4383 "ProcessGDBRemote::ParseFlagsFields Invalid start {0} in "
4392 "ProcessGDBRemote::ParseFlagsFields Invalid start \"{0}\" in "
4401 "ProcessGDBRemote::ParseFlagsFields Invalid end {0} in "
4409 "ProcessGDBRemote::ParseFlagsFields Invalid end \"{0}\" in "
4418 "ProcessGDBRemote::ParseFlagsFields Ignoring unknown attribute "
4430 "ProcessGDBRemote::ParseFlagsFields Start {0} > end {1} in field "
4436 "ProcessGDBRemote::ParseFlagsFields Ignoring field \"{2}\" "
4456 "ProcessGDBRemote::ParseFlagsFields In enum \"{0}\" "
4466 "ProcessGDBRemote::ParseFlagsFields Could not find type "
4494 LLDB_LOG(log, "ProcessGDBRemote::ParseFlags Found flags node \"{0}\"",
4510 "ProcessGDBRemote::ParseFlags Invalid size \"{0}\" "
4516 "ProcessGDBRemote::ParseFlags Ignoring unknown "
4553 "ProcessGDBRemote::ParseFlags Definition of flags "
4568 "ProcessGDBRemote::ParseFlags Ignoring flags because fields "
4578 "ProcessGDBRemote::ParseFlags Ignoring definition of flags "
4679 "ProcessGDBRemote::ParseRegisters unhandled reg "
4696 "ProcessGDBRemote::ParseRegisters Size of register "
4732 "ProcessGDBRemote::ParseRegisters Could not determine lldb"
4754 "ProcessGDBRemote::%s Skipping zero bitsize register %s",
4771 bool ProcessGDBRemote::GetGDBServerRegisterInfoXMLAndProcess(
4884 void ProcessGDBRemote::AddRemoteRegisters(
4926 bool ProcessGDBRemote::GetGDBServerRegisterInfo(ArchSpec &arch_to_use) {
4953 llvm::Expected<LoadedModuleInfoList> ProcessGDBRemote::GetLoadedModuleList() {
4960 LLDB_LOGF(log, "ProcessGDBRemote::%s", __FUNCTION__);
5118 lldb::ModuleSP ProcessGDBRemote::LoadModuleAtAddress(const FileSpec &file,
5130 llvm::Error ProcessGDBRemote::LoadModules() {
5131 using lldb_private::process_gdb_remote::ProcessGDBRemote;
5211 Status ProcessGDBRemote::GetFileLoadAddress(const FileSpec &file,
5252 void ProcessGDBRemote::ModulesDidLoad(ModuleList &module_list) {
5262 void ProcessGDBRemote::HandleAsyncStdout(llvm::StringRef out) {
5269 void ProcessGDBRemote::HandleAsyncMisc(llvm::StringRef data) {
5294 std::string ProcessGDBRemote::HarmonizeThreadIdsForProfileData(
5369 void ProcessGDBRemote::HandleStopReply() {
5381 llvm::Expected<bool> ProcessGDBRemote::SaveCore(llvm::StringRef outfile) {
5458 "ProcessGDBRemote::%s() "
5463 "ProcessGDBRemote::%s"
5472 void ProcessGDBRemote::HandleAsyncStructuredDataPacket(llvm::StringRef data) {
5517 ProcessGDBRemote *process =
5518 (ProcessGDBRemote *)m_interpreter.GetExecutionContext()
5565 ProcessGDBRemote *process =
5566 (ProcessGDBRemote *)m_interpreter.GetExecutionContext().GetProcessPtr();
5599 ProcessGDBRemote *process =
5600 (ProcessGDBRemote *)m_interpreter.GetExecutionContext().GetProcessPtr();
5640 ProcessGDBRemote *process =
5641 (ProcessGDBRemote *)m_interpreter.GetExecutionContext().GetProcessPtr();
5687 ProcessGDBRemote *process =
5688 (ProcessGDBRemote *)m_interpreter.GetExecutionContext().GetProcessPtr();
5746 "Commands for operating on a ProcessGDBRemote process.",
5756 CommandObject *ProcessGDBRemote::GetPluginCommandObject() {
5763 void ProcessGDBRemote::DidForkSwitchSoftwareBreakpoints(bool enable) {
5775 void ProcessGDBRemote::DidForkSwitchHardwareTraps(bool enable) {
5796 void ProcessGDBRemote::DidFork(lldb::pid_t child_pid, lldb::tid_t child_tid) {
5824 LLDB_LOG(log, "ProcessGDBRemote::DidFork() unable to set pid/tid");
5840 LLDB_LOG(log, "ProcessGDBRemote::DidFork() unable to reset pid/tid");
5847 LLDB_LOG(log, "ProcessGDBRemote::DidFork() detach packet send failed: {0}",
5861 void ProcessGDBRemote::DidVFork(lldb::pid_t child_pid, lldb::tid_t child_tid) {
5866 "ProcessGDBRemote::DidFork() called for child_pid: {0}, child_tid {1}",
5890 LLDB_LOG(log, "ProcessGDBRemote::DidFork() unable to set pid/tid");
5900 LLDB_LOG(log, "ProcessGDBRemote::DidFork() unable to reset pid/tid");
5910 "ProcessGDBRemote::DidFork() detach packet send failed: {0}",
5921 void ProcessGDBRemote::DidVForkDone() {
5930 void ProcessGDBRemote::DidExec() {