An open API service indexing awesome lists of open source software.

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

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 <