-
Notifications
You must be signed in to change notification settings - Fork 118
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
Does it support gdb extended remote connection for launch? #363
Comments
Yes, that's supported, see #330 for the issue that currently documents how this is done (feel free to send a PR to add this to the README) and about how it likely will be adjusted. |
@GitMensch Thanks a lot. I try it between 2 linux host, it works well.
The log in debug console: 6-interpreter-exec console "b 11" |
Hi @fbs2016: Can you also post the logs and configuration from the scenario that did work? Also, I'm curious about your configuration. You mentioned your host is running Linux and you're attempting to debug your embedded OS. I assume your embedded OS is running on a different machine. With that expectation, I'd think that your IP address wouldn't be the loopback IP for the Linux host, but maybe I don't fully understand your configuration. The response "Attaching to process 2 failed" is coming from GDB. Are you able to perform the same functionality from the GDB command line? If so, could you post the set of commands you use from the command line to accomplish this? That might help us understand if commands are being sent in different orders or something else that might be different between the command line and this extension. If it's possible, can you post the complete logs for both setups? |
@brownts I can launch the exe from customized gdb cmd in "autorun" of attach configuration, but I can't kill the process as attach just support disconnect. |
This extension doesn't support a "launch" configuration for the extended-remote, at least not at this time, however I'm pretty sure you can get what you want using the "attach" configuration. I'm still a bit unclear on exactly how you are using this. Are you specifying the application to load on the command line as an option to gdbserver or are you expecting to load the file via the extension? I assume you want to specify the application to load in the extension configuration. If so, you can do this by specifying it in the stopAtConnect: true,
autorun: [
"set remote exec-file /path/to/filename",
"run"
] You also mentioned that the default "disconnect" doesn't kill the process. Is it possible that using the |
If submitting a bug please make sure
gdb --version
>= 7.7.1gdb
cwd
andtarget
are properly setlldb --version
>= 3.7.1lldb-mi
cwd
andtarget
are properly setScreenshots are helpful but not required
Does it support gdb extended remote connection for launch/attach? Thanks, I try to debug applicaiton with "gdbserver --multi", but it can't work.
The text was updated successfully, but these errors were encountered: