Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] gdbserver "attach" doesn't fully init the session?

Hi Martin,

It sounds like the "C/C++ remote application" launch is what you want to use. Then configure it to use the "Manual Remote Debugging Launcher".

AFAIK, the "C/C++ Attach to Application" launch is meant to connect to a remote GDB server and then use the connect button to attach, not to use an already attached process.



On 05/29/2015 06:59 AM, Oberhuber, Martin wrote:

Hi CDT/Debug Experts,


We are trying to create a CDT/GDB/DSF “Attach to remote gdbserver” launch, where the

remote gdbserver has already attached the selected PID. Essentially:


# On the remote

gdbserver --once –-attach :2345 $mypid

# In the launch

# - Set /local/path/to/myexe

# - Under GDB: Set /path/to/
#   - Connection, enter remotehost:2345


The Launch connects successfully, we get a proper backtrace and run control works.

But we cannot set breakpoints.

Looking at the gdb traces, it seems that much of the init sequence is missing in this case.

When we run “gdbserver --multi” on the remote, and we click the green “attach” button

In the debug view, everything does work as expected and there’s many more commands

sent to GDB.


Is our approach invalid (ie is only the green “attach” button in the debug view supported these days)?

Or is there anything we’ve been missing ?


I guess I’m confused about “Automatic Remote Launch” versus “Manual Remote Launch” …

Any hints / comments would be most appreciated !





Martin Oberhuber, SMTS / Product Owner – Development Tools, Wind River

direct +43.662.457915.85  fax +43.662.457915.6


cdt-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit






Software developer

8500 Decarie
Ville Mount-Royal, Qc, Canada
Phone 514 345-7900 x45006


Back to the top