2010-06-09 00:52:24 +08:00
|
|
|
//===-- SBCommunication.cpp -------------------------------------*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2010-06-09 00:52:24 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "lldb/API/SBCommunication.h"
|
2019-03-06 08:06:00 +08:00
|
|
|
#include "SBReproducerPrivate.h"
|
2010-06-09 00:52:24 +08:00
|
|
|
#include "lldb/API/SBBroadcaster.h"
|
|
|
|
#include "lldb/Core/Communication.h"
|
2014-10-07 05:22:36 +08:00
|
|
|
#include "lldb/Host/ConnectionFileDescriptor.h"
|
2017-06-27 18:33:14 +08:00
|
|
|
#include "lldb/Host/Host.h"
|
2010-06-09 00:52:24 +08:00
|
|
|
|
|
|
|
using namespace lldb;
|
|
|
|
using namespace lldb_private;
|
|
|
|
|
[lldb] NFC modernize codebase with modernize-use-nullptr
Summary:
NFC = [[ https://llvm.org/docs/Lexicon.html#nfc | Non functional change ]]
This commit is the result of modernizing the LLDB codebase by using
`nullptr` instread of `0` or `NULL`. See
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
for more information.
This is the command I ran and I to fix and format the code base:
```
run-clang-tidy.py \
-header-filter='.*' \
-checks='-*,modernize-use-nullptr' \
-fix ~/dev/llvm-project/lldb/.* \
-format \
-style LLVM \
-p ~/llvm-builds/debug-ninja-gcc
```
NOTE: There were also changes to `llvm/utils/unittest` but I did not
include them because I felt that maybe this library shall be updated in
isolation somehow.
NOTE: I know this is a rather large commit but it is a nobrainer in most
parts.
Reviewers: martong, espindola, shafik, #lldb, JDevlieghere
Reviewed By: JDevlieghere
Subscribers: arsenm, jvesely, nhaehnle, hiraditya, JDevlieghere, teemperor, rnkovacs, emaste, kubamracek, nemanjai, ki.stfu, javed.absar, arichardson, kbarton, jrtc27, MaskRay, atanasyan, dexonsmith, arphaman, jfb, jsji, jdoerfert, lldb-commits, llvm-commits
Tags: #lldb, #llvm
Differential Revision: https://reviews.llvm.org/D61847
llvm-svn: 361484
2019-05-23 19:14:47 +08:00
|
|
|
SBCommunication::SBCommunication() : m_opaque(nullptr), m_opaque_owned(false) {
|
2019-03-06 08:06:00 +08:00
|
|
|
LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBCommunication);
|
|
|
|
}
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2010-12-04 10:39:47 +08:00
|
|
|
SBCommunication::SBCommunication(const char *broadcaster_name)
|
|
|
|
: m_opaque(new Communication(broadcaster_name)), m_opaque_owned(true) {
|
2019-03-06 08:06:00 +08:00
|
|
|
LLDB_RECORD_CONSTRUCTOR(SBCommunication, (const char *), broadcaster_name);
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
|
|
|
|
2010-12-04 10:39:47 +08:00
|
|
|
SBCommunication::~SBCommunication() {
|
2010-06-23 09:19:29 +08:00
|
|
|
if (m_opaque && m_opaque_owned)
|
2013-03-28 07:08:40 +08:00
|
|
|
delete m_opaque;
|
[lldb] NFC modernize codebase with modernize-use-nullptr
Summary:
NFC = [[ https://llvm.org/docs/Lexicon.html#nfc | Non functional change ]]
This commit is the result of modernizing the LLDB codebase by using
`nullptr` instread of `0` or `NULL`. See
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
for more information.
This is the command I ran and I to fix and format the code base:
```
run-clang-tidy.py \
-header-filter='.*' \
-checks='-*,modernize-use-nullptr' \
-fix ~/dev/llvm-project/lldb/.* \
-format \
-style LLVM \
-p ~/llvm-builds/debug-ninja-gcc
```
NOTE: There were also changes to `llvm/utils/unittest` but I did not
include them because I felt that maybe this library shall be updated in
isolation somehow.
NOTE: I know this is a rather large commit but it is a nobrainer in most
parts.
Reviewers: martong, espindola, shafik, #lldb, JDevlieghere
Reviewed By: JDevlieghere
Subscribers: arsenm, jvesely, nhaehnle, hiraditya, JDevlieghere, teemperor, rnkovacs, emaste, kubamracek, nemanjai, ki.stfu, javed.absar, arichardson, kbarton, jrtc27, MaskRay, atanasyan, dexonsmith, arphaman, jfb, jsji, jdoerfert, lldb-commits, llvm-commits
Tags: #lldb, #llvm
Differential Revision: https://reviews.llvm.org/D61847
llvm-svn: 361484
2019-05-23 19:14:47 +08:00
|
|
|
m_opaque = nullptr;
|
2010-06-23 09:19:29 +08:00
|
|
|
m_opaque_owned = false;
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
|
|
|
|
2019-03-06 08:06:00 +08:00
|
|
|
bool SBCommunication::IsValid() const {
|
|
|
|
LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBCommunication, IsValid);
|
Add "operator bool" to SB APIs
Summary:
Our python version of the SB API has (the python equivalent of)
operator bool, but the C++ version doesn't.
This is because our python operators are added by modify-python-lldb.py,
which performs postprocessing on the swig-generated interface files.
In this patch, I add the "operator bool" to all SB classes which have an
IsValid method (which is the same logic used by modify-python-lldb.py).
This way, we make the two interfaces more constent, and it allows us to
rely on swig's automatic syntesis of python __nonzero__ methods instead
of doing manual fixups.
Reviewers: zturner, jingham, clayborg, jfb, serge-sans-paille
Subscribers: jdoerfert, lldb-commits
Differential Revision: https://reviews.llvm.org/D58792
llvm-svn: 355824
2019-03-11 21:58:46 +08:00
|
|
|
return this->operator bool();
|
|
|
|
}
|
|
|
|
SBCommunication::operator bool() const {
|
|
|
|
LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBCommunication, operator bool);
|
2019-03-06 08:06:00 +08:00
|
|
|
|
[lldb] NFC modernize codebase with modernize-use-nullptr
Summary:
NFC = [[ https://llvm.org/docs/Lexicon.html#nfc | Non functional change ]]
This commit is the result of modernizing the LLDB codebase by using
`nullptr` instread of `0` or `NULL`. See
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
for more information.
This is the command I ran and I to fix and format the code base:
```
run-clang-tidy.py \
-header-filter='.*' \
-checks='-*,modernize-use-nullptr' \
-fix ~/dev/llvm-project/lldb/.* \
-format \
-style LLVM \
-p ~/llvm-builds/debug-ninja-gcc
```
NOTE: There were also changes to `llvm/utils/unittest` but I did not
include them because I felt that maybe this library shall be updated in
isolation somehow.
NOTE: I know this is a rather large commit but it is a nobrainer in most
parts.
Reviewers: martong, espindola, shafik, #lldb, JDevlieghere
Reviewed By: JDevlieghere
Subscribers: arsenm, jvesely, nhaehnle, hiraditya, JDevlieghere, teemperor, rnkovacs, emaste, kubamracek, nemanjai, ki.stfu, javed.absar, arichardson, kbarton, jrtc27, MaskRay, atanasyan, dexonsmith, arphaman, jfb, jsji, jdoerfert, lldb-commits, llvm-commits
Tags: #lldb, #llvm
Differential Revision: https://reviews.llvm.org/D61847
llvm-svn: 361484
2019-05-23 19:14:47 +08:00
|
|
|
return m_opaque != nullptr;
|
2019-03-06 08:06:00 +08:00
|
|
|
}
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2011-06-21 06:30:48 +08:00
|
|
|
bool SBCommunication::GetCloseOnEOF() {
|
2019-03-06 08:06:00 +08:00
|
|
|
LLDB_RECORD_METHOD_NO_ARGS(bool, SBCommunication, GetCloseOnEOF);
|
|
|
|
|
2011-06-21 06:30:48 +08:00
|
|
|
if (m_opaque)
|
|
|
|
return m_opaque->GetCloseOnEOF();
|
2010-12-04 10:39:47 +08:00
|
|
|
return false;
|
2011-06-21 06:30:48 +08:00
|
|
|
}
|
|
|
|
|
2010-12-04 10:39:47 +08:00
|
|
|
void SBCommunication::SetCloseOnEOF(bool b) {
|
2019-03-06 08:06:00 +08:00
|
|
|
LLDB_RECORD_METHOD(void, SBCommunication, SetCloseOnEOF, (bool), b);
|
|
|
|
|
2010-12-04 10:39:47 +08:00
|
|
|
if (m_opaque)
|
|
|
|
m_opaque->SetCloseOnEOF(b);
|
|
|
|
}
|
|
|
|
|
|
|
|
ConnectionStatus SBCommunication::Connect(const char *url) {
|
2019-03-06 08:06:00 +08:00
|
|
|
LLDB_RECORD_METHOD(lldb::ConnectionStatus, SBCommunication, Connect,
|
|
|
|
(const char *), url);
|
|
|
|
|
2010-12-04 10:39:47 +08:00
|
|
|
if (m_opaque) {
|
|
|
|
if (!m_opaque->HasConnection())
|
2017-06-27 18:33:14 +08:00
|
|
|
m_opaque->SetConnection(Host::CreateDefaultConnection(url).release());
|
[lldb] NFC modernize codebase with modernize-use-nullptr
Summary:
NFC = [[ https://llvm.org/docs/Lexicon.html#nfc | Non functional change ]]
This commit is the result of modernizing the LLDB codebase by using
`nullptr` instread of `0` or `NULL`. See
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
for more information.
This is the command I ran and I to fix and format the code base:
```
run-clang-tidy.py \
-header-filter='.*' \
-checks='-*,modernize-use-nullptr' \
-fix ~/dev/llvm-project/lldb/.* \
-format \
-style LLVM \
-p ~/llvm-builds/debug-ninja-gcc
```
NOTE: There were also changes to `llvm/utils/unittest` but I did not
include them because I felt that maybe this library shall be updated in
isolation somehow.
NOTE: I know this is a rather large commit but it is a nobrainer in most
parts.
Reviewers: martong, espindola, shafik, #lldb, JDevlieghere
Reviewed By: JDevlieghere
Subscribers: arsenm, jvesely, nhaehnle, hiraditya, JDevlieghere, teemperor, rnkovacs, emaste, kubamracek, nemanjai, ki.stfu, javed.absar, arichardson, kbarton, jrtc27, MaskRay, atanasyan, dexonsmith, arphaman, jfb, jsji, jdoerfert, lldb-commits, llvm-commits
Tags: #lldb, #llvm
Differential Revision: https://reviews.llvm.org/D61847
llvm-svn: 361484
2019-05-23 19:14:47 +08:00
|
|
|
return m_opaque->Connect(url, nullptr);
|
2016-09-07 04:57:50 +08:00
|
|
|
}
|
2010-06-09 00:52:24 +08:00
|
|
|
return eConnectionStatusNoConnection;
|
2010-12-04 10:39:47 +08:00
|
|
|
}
|
|
|
|
|
2010-06-09 00:52:24 +08:00
|
|
|
ConnectionStatus SBCommunication::AdoptFileDesriptor(int fd, bool owns_fd) {
|
2019-03-06 08:06:00 +08:00
|
|
|
LLDB_RECORD_METHOD(lldb::ConnectionStatus, SBCommunication,
|
|
|
|
AdoptFileDesriptor, (int, bool), fd, owns_fd);
|
|
|
|
|
2010-10-30 12:51:46 +08:00
|
|
|
ConnectionStatus status = eConnectionStatusNoConnection;
|
2010-06-23 09:19:29 +08:00
|
|
|
if (m_opaque) {
|
|
|
|
if (m_opaque->HasConnection()) {
|
|
|
|
if (m_opaque->IsConnected())
|
2010-10-26 11:11:13 +08:00
|
|
|
m_opaque->Disconnect();
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
2010-06-23 09:19:29 +08:00
|
|
|
m_opaque->SetConnection(new ConnectionFileDescriptor(fd, owns_fd));
|
|
|
|
if (m_opaque->IsConnected())
|
2010-10-30 12:51:46 +08:00
|
|
|
status = eConnectionStatusSuccess;
|
2016-09-07 04:57:50 +08:00
|
|
|
else
|
2010-10-30 12:51:46 +08:00
|
|
|
status = eConnectionStatusLostConnection;
|
2016-09-07 04:57:50 +08:00
|
|
|
}
|
2010-10-30 12:51:46 +08:00
|
|
|
return status;
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
ConnectionStatus SBCommunication::Disconnect() {
|
2019-03-06 08:06:00 +08:00
|
|
|
LLDB_RECORD_METHOD_NO_ARGS(lldb::ConnectionStatus, SBCommunication,
|
|
|
|
Disconnect);
|
|
|
|
|
2010-10-26 11:11:13 +08:00
|
|
|
ConnectionStatus status = eConnectionStatusNoConnection;
|
2010-06-23 09:19:29 +08:00
|
|
|
if (m_opaque)
|
2010-10-26 11:11:13 +08:00
|
|
|
status = m_opaque->Disconnect();
|
|
|
|
return status;
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
bool SBCommunication::IsConnected() const {
|
2019-03-06 08:06:00 +08:00
|
|
|
LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBCommunication, IsConnected);
|
|
|
|
|
2019-03-08 06:47:13 +08:00
|
|
|
return m_opaque ? m_opaque->IsConnected() : false;
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
size_t SBCommunication::Read(void *dst, size_t dst_len, uint32_t timeout_usec,
|
|
|
|
ConnectionStatus &status) {
|
2019-03-09 03:09:27 +08:00
|
|
|
LLDB_RECORD_DUMMY(size_t, SBCommunication, Read,
|
|
|
|
(void *, size_t, uint32_t, lldb::ConnectionStatus &), dst,
|
|
|
|
dst_len, timeout_usec, status);
|
|
|
|
|
2010-10-30 12:51:46 +08:00
|
|
|
size_t bytes_read = 0;
|
2016-11-25 19:58:44 +08:00
|
|
|
Timeout<std::micro> timeout = timeout_usec == UINT32_MAX
|
|
|
|
? Timeout<std::micro>(llvm::None)
|
|
|
|
: std::chrono::microseconds(timeout_usec);
|
2010-06-23 09:19:29 +08:00
|
|
|
if (m_opaque)
|
[lldb] NFC modernize codebase with modernize-use-nullptr
Summary:
NFC = [[ https://llvm.org/docs/Lexicon.html#nfc | Non functional change ]]
This commit is the result of modernizing the LLDB codebase by using
`nullptr` instread of `0` or `NULL`. See
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
for more information.
This is the command I ran and I to fix and format the code base:
```
run-clang-tidy.py \
-header-filter='.*' \
-checks='-*,modernize-use-nullptr' \
-fix ~/dev/llvm-project/lldb/.* \
-format \
-style LLVM \
-p ~/llvm-builds/debug-ninja-gcc
```
NOTE: There were also changes to `llvm/utils/unittest` but I did not
include them because I felt that maybe this library shall be updated in
isolation somehow.
NOTE: I know this is a rather large commit but it is a nobrainer in most
parts.
Reviewers: martong, espindola, shafik, #lldb, JDevlieghere
Reviewed By: JDevlieghere
Subscribers: arsenm, jvesely, nhaehnle, hiraditya, JDevlieghere, teemperor, rnkovacs, emaste, kubamracek, nemanjai, ki.stfu, javed.absar, arichardson, kbarton, jrtc27, MaskRay, atanasyan, dexonsmith, arphaman, jfb, jsji, jdoerfert, lldb-commits, llvm-commits
Tags: #lldb, #llvm
Differential Revision: https://reviews.llvm.org/D61847
llvm-svn: 361484
2019-05-23 19:14:47 +08:00
|
|
|
bytes_read = m_opaque->Read(dst, dst_len, timeout, status, nullptr);
|
2010-10-30 12:51:46 +08:00
|
|
|
else
|
|
|
|
status = eConnectionStatusNoConnection;
|
2016-09-07 04:57:50 +08:00
|
|
|
|
2010-10-30 12:51:46 +08:00
|
|
|
return bytes_read;
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
size_t SBCommunication::Write(const void *src, size_t src_len,
|
|
|
|
ConnectionStatus &status) {
|
2019-03-09 03:09:27 +08:00
|
|
|
LLDB_RECORD_DUMMY(size_t, SBCommunication, Write,
|
|
|
|
(const void *, size_t, lldb::ConnectionStatus &), src,
|
|
|
|
src_len, status);
|
|
|
|
|
2010-10-30 12:51:46 +08:00
|
|
|
size_t bytes_written = 0;
|
2010-06-23 09:19:29 +08:00
|
|
|
if (m_opaque)
|
[lldb] NFC modernize codebase with modernize-use-nullptr
Summary:
NFC = [[ https://llvm.org/docs/Lexicon.html#nfc | Non functional change ]]
This commit is the result of modernizing the LLDB codebase by using
`nullptr` instread of `0` or `NULL`. See
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
for more information.
This is the command I ran and I to fix and format the code base:
```
run-clang-tidy.py \
-header-filter='.*' \
-checks='-*,modernize-use-nullptr' \
-fix ~/dev/llvm-project/lldb/.* \
-format \
-style LLVM \
-p ~/llvm-builds/debug-ninja-gcc
```
NOTE: There were also changes to `llvm/utils/unittest` but I did not
include them because I felt that maybe this library shall be updated in
isolation somehow.
NOTE: I know this is a rather large commit but it is a nobrainer in most
parts.
Reviewers: martong, espindola, shafik, #lldb, JDevlieghere
Reviewed By: JDevlieghere
Subscribers: arsenm, jvesely, nhaehnle, hiraditya, JDevlieghere, teemperor, rnkovacs, emaste, kubamracek, nemanjai, ki.stfu, javed.absar, arichardson, kbarton, jrtc27, MaskRay, atanasyan, dexonsmith, arphaman, jfb, jsji, jdoerfert, lldb-commits, llvm-commits
Tags: #lldb, #llvm
Differential Revision: https://reviews.llvm.org/D61847
llvm-svn: 361484
2019-05-23 19:14:47 +08:00
|
|
|
bytes_written = m_opaque->Write(src, src_len, status, nullptr);
|
2016-09-07 04:57:50 +08:00
|
|
|
else
|
2010-10-30 12:51:46 +08:00
|
|
|
status = eConnectionStatusNoConnection;
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2019-03-08 06:47:13 +08:00
|
|
|
return bytes_written;
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
bool SBCommunication::ReadThreadStart() {
|
2019-03-06 08:06:00 +08:00
|
|
|
LLDB_RECORD_METHOD_NO_ARGS(bool, SBCommunication, ReadThreadStart);
|
|
|
|
|
2019-03-08 06:47:13 +08:00
|
|
|
return m_opaque ? m_opaque->StartReadThread() : false;
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
bool SBCommunication::ReadThreadStop() {
|
2019-03-06 08:06:00 +08:00
|
|
|
LLDB_RECORD_METHOD_NO_ARGS(bool, SBCommunication, ReadThreadStop);
|
|
|
|
|
2019-03-08 06:47:13 +08:00
|
|
|
return m_opaque ? m_opaque->StopReadThread() : false;
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
bool SBCommunication::ReadThreadIsRunning() {
|
2019-03-06 08:06:00 +08:00
|
|
|
LLDB_RECORD_METHOD_NO_ARGS(bool, SBCommunication, ReadThreadIsRunning);
|
|
|
|
|
2019-03-08 06:47:13 +08:00
|
|
|
return m_opaque ? m_opaque->ReadThreadIsRunning() : false;
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
bool SBCommunication::SetReadThreadBytesReceivedCallback(
|
|
|
|
ReadThreadBytesReceived callback, void *callback_baton) {
|
2019-03-12 04:31:21 +08:00
|
|
|
LLDB_RECORD_DUMMY(bool, SBCommunication, SetReadThreadBytesReceivedCallback,
|
2019-03-09 03:09:27 +08:00
|
|
|
(lldb::SBCommunication::ReadThreadBytesReceived, void *),
|
|
|
|
callback, callback_baton);
|
|
|
|
|
2010-10-30 12:51:46 +08:00
|
|
|
bool result = false;
|
2010-06-23 09:19:29 +08:00
|
|
|
if (m_opaque) {
|
|
|
|
m_opaque->SetReadThreadBytesReceivedCallback(callback, callback_baton);
|
2010-10-30 12:51:46 +08:00
|
|
|
result = true;
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
2010-10-30 12:51:46 +08:00
|
|
|
return result;
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
SBBroadcaster SBCommunication::GetBroadcaster() {
|
2019-03-06 08:06:00 +08:00
|
|
|
LLDB_RECORD_METHOD_NO_ARGS(lldb::SBBroadcaster, SBCommunication,
|
|
|
|
GetBroadcaster);
|
|
|
|
|
2010-06-23 09:19:29 +08:00
|
|
|
SBBroadcaster broadcaster(m_opaque, false);
|
2019-03-06 08:06:00 +08:00
|
|
|
return LLDB_RECORD_RESULT(broadcaster);
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
|
|
|
|
2012-02-16 14:50:00 +08:00
|
|
|
const char *SBCommunication::GetBroadcasterClass() {
|
2019-03-06 08:06:00 +08:00
|
|
|
LLDB_RECORD_STATIC_METHOD_NO_ARGS(const char *, SBCommunication,
|
|
|
|
GetBroadcasterClass);
|
|
|
|
|
2012-02-16 14:50:00 +08:00
|
|
|
return Communication::GetStaticBroadcasterClass().AsCString();
|
|
|
|
}
|
2019-03-20 01:13:13 +08:00
|
|
|
|
|
|
|
namespace lldb_private {
|
|
|
|
namespace repro {
|
|
|
|
|
|
|
|
template <>
|
|
|
|
void RegisterMethods<SBCommunication>(Registry &R) {
|
|
|
|
LLDB_REGISTER_CONSTRUCTOR(SBCommunication, ());
|
|
|
|
LLDB_REGISTER_CONSTRUCTOR(SBCommunication, (const char *));
|
|
|
|
LLDB_REGISTER_METHOD_CONST(bool, SBCommunication, IsValid, ());
|
|
|
|
LLDB_REGISTER_METHOD_CONST(bool, SBCommunication, operator bool, ());
|
|
|
|
LLDB_REGISTER_METHOD(bool, SBCommunication, GetCloseOnEOF, ());
|
|
|
|
LLDB_REGISTER_METHOD(void, SBCommunication, SetCloseOnEOF, (bool));
|
|
|
|
LLDB_REGISTER_METHOD(lldb::ConnectionStatus, SBCommunication, Connect,
|
|
|
|
(const char *));
|
|
|
|
LLDB_REGISTER_METHOD(lldb::ConnectionStatus, SBCommunication,
|
|
|
|
AdoptFileDesriptor, (int, bool));
|
|
|
|
LLDB_REGISTER_METHOD(lldb::ConnectionStatus, SBCommunication, Disconnect,
|
|
|
|
());
|
|
|
|
LLDB_REGISTER_METHOD_CONST(bool, SBCommunication, IsConnected, ());
|
|
|
|
LLDB_REGISTER_METHOD(bool, SBCommunication, ReadThreadStart, ());
|
|
|
|
LLDB_REGISTER_METHOD(bool, SBCommunication, ReadThreadStop, ());
|
|
|
|
LLDB_REGISTER_METHOD(bool, SBCommunication, ReadThreadIsRunning, ());
|
|
|
|
LLDB_REGISTER_METHOD(lldb::SBBroadcaster, SBCommunication, GetBroadcaster,
|
|
|
|
());
|
|
|
|
LLDB_REGISTER_STATIC_METHOD(const char *, SBCommunication,
|
|
|
|
GetBroadcasterClass, ());
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|