gdbserver icon indicating copy to clipboard operation
gdbserver copied to clipboard

enable gdbserver debug in c/c++ source

Open 1637664504 opened this issue 2 months ago • 1 comments

Request:

// same as gdbserver, wait gdb remote connect debug.
int main()
{
gdb_init(1234);


// stop
gdb_end();
}

Some time,

  1. manual command launch program not inconvenient;
  2. --attach pid also not inconvenient;

I want enable gdbserver debug in source by c/c++ API.

1637664504 avatar Apr 22 '24 10:04 1637664504

You could do it by system: https://github.com/vadimcn/codelldb/blob/master/MANUAL.md#attaching-debugger-to-the-current-process-c Centainly, providing an API is better, but I don't have time to do it. You can try it and send a PR!

bet4it avatar Apr 23 '24 15:04 bet4it