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?

Title:
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.

Regards,

Marc

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/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

 



_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


--

 

 

 

line

MARC DUMAIS
Software developer


Ericsson
8500 Decarie
Ville Mount-Royal, Qc, Canada
Phone 514 345-7900 x45006
marc.dumais@xxxxxxxxxxxx
www.ericsson.com



http://www.ericsson.com/current_campaign

 


Back to the top