Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345985 - Ability to optionally specify that CDT should use the 'load' command.
Summary: Ability to optionally specify that CDT should use the 'load' command.
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-16 13:16 EDT by Sergey CLA
Modified: 2020-09-04 15:22 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey CLA 2011-05-16 13:16:18 EDT
Build Identifier: 

I have some problems with gdbserver debugging in Eclipse.
Eclipse CDT automatically executes some commands in gdb and one of them is "target remote localhost:1212". But it doesn't execute "load" command after that one and that's why my debugging stops. Now I can manually execute "load" command in gdb command line window and then debugging is ok, but I would like it be automated. I am unable to use gdbinit file for that purpose because its commands are executed with Eclipse before "target remote", not after and it's not configured.

So the question is what is the best way to be able to make Eclipse not to execute "target remote" command at all or to execute "load" command after that one?
I checked that the problem can be solved editing Eclipse source code and adding executing of "MITargetDownload" after "MITargetSelect" and everything seems to be ok in my case, but I'm not sure that it is the right way to solve the problem for all the rest cases.

What do you think about it?

Reproducible: Always