Hacker News new | ask | show | jobs
by IshKebab 1358 days ago
Yeah there's gdbserver which allows you to connect to GDB over TCP and run commands. You can use the GDB/MI command syntax which gives machine readable output.

Then Microsoft provides an adapter to convert GDB/MI to their standard Debug Adapter Protocol. I think their adapter is unfortunately closed source but there appears to be a third party open source one too.

1 comments

>there appears to be a third party open source one too

Where?

Here: https://github.com/Marus/cortex-debug/blob/master/src/gdb.ts...

Though I'm not 100% sure it is using the DAP.