mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Bug 344408: Cannot show mixed-mode disassembly when doing project-less debug
This commit is contained in:
parent
4c26cbe63e
commit
5465ec9a3d
1 changed files with 2 additions and 2 deletions
|
@ -141,10 +141,10 @@ public class ProgramRelativePathSourceContainer extends AbstractSourceContainer{
|
|||
|
||||
// Get current project. Unlike CDI, DSF supports debugging
|
||||
// executables that are not in an Eclipse project, so this may be
|
||||
// null for a DSF session. See bugzilla 304433.
|
||||
// null or empty for a DSF session. See bugzilla 304433 and 344408.
|
||||
ICProject project = null;
|
||||
String projectName = configuration.getAttribute(ICDTLaunchConfigurationConstants.ATTR_PROJECT_NAME, (String) null);
|
||||
if (projectName != null) {
|
||||
if (projectName != null && projectName.length() != 0) {
|
||||
project = CoreModel.getDefault().getCModel().getCProject(projectName);
|
||||
if (project == null || !project.exists()) {
|
||||
return fProgramPath; // return empty path
|
||||
|
|
Loading…
Add table
Reference in a new issue