Bugzilla will undergo maintenance 2024-03-29 18h00 CET. Bugzilla will be placed in read-only mode at that time.

Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 464078 - Support project-less Run
Summary: Support project-less Run
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 8.6.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 8.7.0   Edit
Assignee: Marc Khouzam CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on: 464636
Blocks:
  Show dependency tree
 
Reported: 2015-04-07 13:39 EDT by Marc Khouzam CLA
Modified: 2015-04-30 10:59 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Khouzam CLA 2015-04-07 13:39:51 EDT
We support project-less debugging which allows to debug any binary without it belonging to a project.

We could do the same for Run mode and allow to run any binary.

Beyond the enhancement, it will solve the problem that a project-less debug launch is re-used in Run mode but fails because of the missing project.  What I mean is:

1- create a project-less debug launch
2- use that same launch but in Run mode
=> there is an error in main tab saying the project is missing
Comment 1 Elena Laskavaia CLA 2015-04-07 20:58:07 EDT
Isn't because Run uses CDI delegate by default?
Comment 2 Marc Khouzam CLA 2015-04-08 12:38:19 EDT
(In reply to Elena Laskavaia from comment #1)
> Isn't because Run uses CDI delegate by default?

I guess so.  I guess the simplest thing will be to copy over the little bit of code to handle a Run launch into the GdbLaunchDelegate of DSF-GDB and use that delegate instead.

Maybe that is a better solution to Bug 463975 also.
Comment 3 Marc Khouzam CLA 2015-04-14 13:55:11 EDT
I've opened bug 464636 to migrate the Run launch from CDI to DSF
Comment 4 Marc Khouzam CLA 2015-04-22 13:58:32 EDT
The latest fix posted for bug 464636 includes project-less Run:

https://git.eclipse.org/r/#/c/45886/7
Comment 5 Eclipse Genie CLA 2015-04-24 11:43:25 EDT
New Gerrit change created: https://git.eclipse.org/r/46445
Comment 6 Marc Khouzam CLA 2015-04-24 11:44:34 EDT
(In reply to Marc Khouzam from comment #4)
> The latest fix posted for bug 464636 includes project-less Run:
> 
> https://git.eclipse.org/r/#/c/45886/7

This had a bug that when fixed did not provide project-less Run.

(In reply to Eclipse Genie from comment #5)
> New Gerrit change created: https://git.eclipse.org/r/46445

This is the addition for project-less Run.
Comment 8 Marc Khouzam CLA 2015-04-30 10:59:48 EDT
Committed to master. We now support project-less run.
I'll put a note in the N&N