diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-09-06 14:32:30 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-09-06 14:32:30 +0000 | 
| commit | 027f1c9655391dcb2b0117f931f720211ac933db (patch) | |
| tree | 94980f450aa3daec3e1fec217374704ad62cfe45 /source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | |
| parent | 5e95aa85bb660d45e9905ef1d7180b2678280660 (diff) | |
Notes
Diffstat (limited to 'source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
| -rw-r--r-- | source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 23 | 
1 files changed, 21 insertions, 2 deletions
| diff --git a/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index ae0a2f5e66c5..2a253c5a99e8 100644 --- a/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -87,6 +87,7 @@ GDBRemoteCommunicationClient::GDBRemoteCommunicationClient() :      m_supports_qXfer_features_read (eLazyBoolCalculate),      m_supports_augmented_libraries_svr4_read (eLazyBoolCalculate),      m_supports_jThreadExtendedInfo (eLazyBoolCalculate), +    m_supports_jLoadedDynamicLibrariesInfos (eLazyBoolCalculate),      m_supports_qProcessInfoPID (true),      m_supports_qfProcessInfo (true),      m_supports_qUserName (true), @@ -654,6 +655,24 @@ GDBRemoteCommunicationClient::GetThreadExtendedInfoSupported ()  }  bool +GDBRemoteCommunicationClient::GetLoadedDynamicLibrariesInfosSupported () +{ +    if (m_supports_jLoadedDynamicLibrariesInfos == eLazyBoolCalculate) +    { +        StringExtractorGDBRemote response; +        m_supports_jLoadedDynamicLibrariesInfos = eLazyBoolNo; +        if (SendPacketAndWaitForResponse("jGetLoadedDynamicLibrariesInfos:", response, false) == PacketResult::Success) +        { +            if (response.IsOKResponse()) +            { +                m_supports_jLoadedDynamicLibrariesInfos = eLazyBoolYes; +            } +        } +    } +    return m_supports_jLoadedDynamicLibrariesInfos; +} + +bool  GDBRemoteCommunicationClient::GetxPacketSupported ()  {      if (m_supports_x == eLazyBoolCalculate) @@ -1037,8 +1056,8 @@ GDBRemoteCommunicationClient::SendContinuePacketAndWaitForResponse      // may change if we are interrupted and we continue after an async packet...      std::string continue_packet(payload, packet_length); -    const auto sigstop_signo = process->GetUnixSignals().GetSignalNumberFromName("SIGSTOP"); -    const auto sigint_signo = process->GetUnixSignals().GetSignalNumberFromName("SIGINT"); +    const auto sigstop_signo = process->GetUnixSignals()->GetSignalNumberFromName("SIGSTOP"); +    const auto sigint_signo = process->GetUnixSignals()->GetSignalNumberFromName("SIGINT");      bool got_async_packet = false; | 
