Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable gdbserver debug in c/c++ source #6

Open
1637664504 opened this issue Apr 22, 2024 · 1 comment
Open

enable gdbserver debug in c/c++ source #6

1637664504 opened this issue Apr 22, 2024 · 1 comment
Labels
good first issue Good for newcomers

Comments

@1637664504
Copy link

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.

@bet4it
Copy link
Owner

bet4it commented Apr 23, 2024

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 bet4it added the good first issue Good for newcomers label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants