- 14 Apr, 2021 1 commit
-
-
Ben Clayton authored
Schema top-level definitions, such as `InvalidatedAreas` and `SteppingGranularity` were being emitted as empty structures, when they were actually enumerators. Re-work protocol_gen.go to emit these correctly. Also bumps the protocol to DAP version 1.46.0
-
- 11 Feb, 2021 1 commit
-
-
Ben Clayton authored
The license classification rules in github.com/google/licensecheck have been updated.
-
- 03 Feb, 2021 1 commit
-
-
Ben Clayton authored
Add Session::registerHandler() overloads that support response callbacks
-
- 14 Jan, 2021 1 commit
-
-
Ben Clayton authored
-
- 02 Dec, 2020 1 commit
-
-
Ben Clayton authored
nlohmann is still the default, but if `CPPDAP_JSON_DIR` points to rapidjson, then this will be used instead Most of this was upstreamed from: https://fuchsia-review.googlesource.com/c/third_party/github.com/google/cppdap/+/456566
-
- 01 Dec, 2020 3 commits
-
-
Puneetha Ramachandra authored
When there is partial message in reader, popping out the characters lead to parse errors on the subsequent attempt to parse. To avoid this, the last matched characters' index is stored during parsing and reset on error.
-
Puneetha Ramachandra authored
Bind API is split into connect and startProcessingMessages calls. This enables users to directly call connect and manage processing messages on user threads.
-
Puneetha Ramachandra authored
bindNoThread in conjunction with OnDataAvailable will provide users with a choice of thread to process requests on. This is useful when the user relies on single threaded message loop based design to avoid locking.
-
- 21 Jul, 2020 1 commit
-
-
Ben Clayton authored
`license-checker` is a tool that verifies each file has contains a permitted license header. See https://github.com/ben-clayton/license-checker for more information. Also add missing licenses to presubmit scripts.
-
- 30 Jun, 2020 1 commit
-
-
Ben Clayton authored
`int` may be < 64 bit, and some dap protocols use a 64 bit integer. Chnage to `int64_t` to be consistent. Fixes: #45
-
- 22 Jun, 2020 1 commit
-
-
Ben Clayton authored
Can be used to explicitly control when the TypeInfo static initializers / destructors are called. Usually not needed. Issue: #40
-
- 15 Jun, 2020 2 commits
-
-
Ben Clayton authored
Instead of constructing them as static fields. Slightly less cludgy. Related issue: #40
-
Ben Clayton authored
Exercise copy, assign, moves.
-
- 10 Jun, 2020 4 commits
-
-
Ben Clayton authored
This change fixes the following warnings: ``` -Wc++98-compat-extra-semi -Wc++98-compat-local-type-template-args -Wc++98-compat-pedantic -Wc++98-compat -Wcomma -Wdeprecated-copy-dtor -Wexit-time-destructors -Wextra-semi-stmt -Wextra-semi -Wfloat-conversion -Wfloat-equal -Wformat-nonliteral -Wglobal-constructors -Winconsistent-missing-destructor-override -Wnon-virtual-dtor -Wold-style-cast -Wpadded -Wreturn-std-move-in-c++11 -Wshadow-field-in-constructor -Wshadow-uncaptured-local -Wshift-sign-overflow -Wsign-conversion -Wundef -Wunreachable-code-return -Wused-but-marked-unused -Wweak-vtables -Wzero-as-null-pointer-constant ``` -
Ben Clayton authored
Update the script to include the DAP version in the file headers. Remove http file caching. Was never used.
-
Ben Clayton authored
This was copying the pointer to the other's value in other.buffer.
-
Ben Clayton authored
while another thread is stuck in read() or write(). Fixes: #37
-
- 08 Jun, 2020 4 commits
-
-
Ben Clayton authored
... about `close()`ing the socket on one thread while in a blocking `recv()` or `send()` call on another thread. Fixes #35
-
Ben Clayton authored
Also known as a shared mutex. `std::shared_mutex` was introduced in C++17, but cppdap is C++11. To be used to fix #35.
-
Ben Clayton authored
If any of the `CPPDAP_?SAN` sanitizers are enabled, then the build would fail as the compile flags would collide with hard-coded use of address sanitizer for the fuzzer. Don't hard code address sanitizer for the fuzzer - just use the CMake flag options.
-
Ben Clayton authored
Fixes: #24
-
- 05 Jun, 2020 3 commits
-
-
Ben Clayton authored
Looks like a copypasta mistake
-
Ben Clayton authored
Define `JSON_NOEXCEPTION` to avoid raising exceptions. Exceptions are usually disabled for Google projects (https://google.github.io/styleguide/cppguide.html#Exceptions). Also pass `false` to the `allow_exceptions` parameter of `nlohmann::json::parse()`. Issue identified by @kuafuwang in #26.
-
Ben Clayton authored
Add build rules, scripts, basic corpus, and dictionary. Currently requires recent clang toolchain.
-
- 02 Jun, 2020 1 commit
-
-
Ben Clayton authored
`DAP_IMPLEMENT_STRUCT_TYPEINFO_EXT` and `DAP_STRUCT_TYPEINFO_EXT` are two new flavors of `DAP_IMPLEMENT_STRUCT_TYPEINFO` and `DAP_STRUCT_TYPEINFO` that allow you to derive message types. This involved a bit of reworking on the serializer interfaces. Added test. Issue: #32
-
- 27 May, 2020 2 commits
-
-
Ben Clayton authored
The actual length of data read by `dap::Reader::read()` was not being correctly inspected. Fixed, added test. Bug identified by @kuafuwang. Fixes #27
-
Ben Clayton authored
Identified by @kuafuwang. Fixes #29
-
- 07 May, 2020 1 commit
-
-
Ben Clayton authored
presubmit.sh now runs presubmit-docker.sh using the new radial docker image which contains various toolchains. The `/bin/using.sh` bash script exports the `using` bash function which can be called to configure toolchains at specific versions.
-
- 05 May, 2020 1 commit
-
-
Ben Clayton authored
Updated with: `go run scripts/protocol_gen/protocol_gen.go`
-
- 13 Mar, 2020 1 commit
-
-
Ben Clayton authored
DAP usually consists of small packet requests, with small packet responses. When there are many frequent, blocking requests made, Nagle's algorithm can dramatically limit the request->response rates.
-
- 06 Feb, 2020 1 commit
-
-
Ben Clayton authored
Example warning: cppdap/include/dap/future.h:172:14: error: implicitly-declared ‘dap::ResponseOrError<dap::StackTraceResponse>& dap::ResponseOrError<dap::StackTraceResponse>::operator=(const dap::ResponseOrError<dap::StackTraceResponse>&)’ is deprecated [-Werror=deprecated-copy] Add missing constructors and assignment operators. This probably adds more than is absolutely necessary, but there's no harm in being thorough.
-
- 28 Jan, 2020 1 commit
-
-
Ben Clayton authored
Use these to avoid "socket in use" errors when restarting a DAP that uses the same port.
-
- 24 Jan, 2020 3 commits
-
-
Ben Clayton authored
Issue #16 describes the problem and solution perfectly. Updated tests to cover this. Fixes #16
-
Ben Clayton authored
Avoids having to pull this in as an explicit include directory for projects that depend on cppdap.
-
Ben Clayton authored
I'm not convinced that `opt.value() = foo` is a desirable pattern, and worse still it confuses some compilers about which overload to use. Just remove it.
-
- 17 Jan, 2020 3 commits
-
-
Ben Clayton authored
On windows text mode for these plays with newline escape sequences, breaking the ContextStream encoding. Fixes: #12
-
Ben Clayton authored
`std::atomic<bool>` does not default initialize to `false`. Bug: #12
-
Ben Clayton authored
Without this the vscode extension cannot find the example executable, and the example fails. Also use $USERPROFILE instead of $HOME for finding the `.vscode` user directory for installing the extension. Bug: #12
-
- 06 Jan, 2020 2 commits
-
-
Ben Clayton authored
Empty structs were being serialized as `null`, when they should have been serialized as `{}`. This was due to the type inference on the serializer - where no calls to `field()` would result in the default `null` type. To solve this, the `serialize(const void* object, const std::initializer_list<Field>&)` inline helper has been promoted to a virtual function (and renamed to `fields()`). The JSON serializer implementation of this now first sets the object type to `object`, even if there are no fields to serialize. Added test for this. Fixes: #10 -
Ben Clayton authored
-