I haven't tried it as of yet but I think there are ways for a GDB server to be set up for devices which exposes debug probes via JTAG/SWD (via, e.g., Segger J-Link) or CMSIS-DAP. Since this is someth…
To support loading svd file, to get chip peripherals and be able to read/write.
I usually have a header file open or a reference manual to get addresses of registers.