Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330552

Summary: It must be possible to launch GDB without an executable
Product: [Tools] CDT Reporter: Oyvind Harboe <oyvind.harboe>
Component: cdt-debugAssignee: cdt-debug-inbox <cdt-debug-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, marc.khouzam, pawel.1.piech
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Oyvind Harboe CLA 2010-11-18 06:20:59 EST
Build Identifier: M20100909-0800

How to set up the executable in embedded environments requires more than just specifying it on the command line.

The simplest best(IMHO) solution would be to leave the connection sequence to the user and not require an executable.

See problems with PowerPC architecture for instance:

http://www.denx.de/wiki/view/DULG/RemoteGPacketReplyIsTooLong

Reproducible: Always
Comment 1 Oyvind Harboe CLA 2010-11-18 06:47:58 EST
Here is the startup script that I use with the Zylin Embedded CDT plugin.

Zylin Embedded CDT supports projectless debugging and not specifying a binary.

add-symbol-file /home/oyvind/workspace/partech/build/pt_mvci_v1.xx/out/pt_mvci_v100.elf 0
show architecture
set architecture powerpc:common
target remote 10.0.0.57:2001



Source code for Zylin Embedded CDT:

http://repo.or.cz/w/zylincdt.git


My goal is to delete as much as possible from Zylin Embedded CDT :-) while still retaining key features like projectless and optional binary launching and complete control of launch process from the GDB init sequence. Cygwin paths are also translated automatically.
Comment 2 Marc Khouzam CLA 2010-11-18 19:45:18 EST
Note that there was a way to ignore the executable in the launch, but because that option was obscure, it was removed from the UI in bug 314536.  The plumbing is there and we could re-enable it if needed.