https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter
CDT GDB Debug Adapter
https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter
cdt debug gdb
Last synced: 2 months ago
JSON representation
CDT GDB Debug Adapter
- Host: GitHub
- URL: https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter
- Owner: eclipse-cdt-cloud
- License: epl-2.0
- Created: 2018-11-01T15:33:11.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-02-10T17:12:26.000Z (4 months ago)
- Last Synced: 2025-03-28T14:04:44.012Z (2 months ago)
- Topics: cdt, debug, gdb
- Language: TypeScript
- Homepage:
- Size: 1.06 MB
- Stars: 33
- Watchers: 20
- Forks: 43
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# CDT GDB Debug Adapter
This is an implementation of the Debug Adapter Protocol for gdb.
It is loosely based on the Eclipse CDT MI layer.
We are at least learning from it.The source code can be found in the following repository: https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter
## Building
Build is pretty simple.
```sh
yarn
```## Running
The entry point for the adapter is `cdtDebugAdapter` for local debugging
and `cdtDebugTargetAdapter` for target (remote) debugging.### Command line arguments
#### `--server=PORT`
Start the adapter listening on the given port instead of on stdin/stdout.
#### `--config=INITIALCONFIG`
Start the adapter using the given configuration as a starting point for the args in `launch` or `attach` request.
For example, the default GDB can be set like this:
```sh
node debugTargetAdapter.js --config='{"gdb":"arm-none-eabi-gdb"}'
```The config can be passed on the command line as JSON, or a response file can be used by starting the argument with `@`.
The rest of the argument will be interpreted as a file name to read.
For example, to start the adapter defaulting to a process ID to attach to, create a file containing the JSON and reference it like this:```sh
cat >config.json <