Skip to main content

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

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/crossgdb.sh
#   - 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 !

 

Thanks,

Martin

--

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

direct +43.662.457915.85  fax +43.662.457915.6

 


Back to the top