Skip to main content
summaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorMarc Khouzam2011-05-02 11:03:13 -0400
committerMarc Khouzam2011-05-02 11:03:13 -0400
commit5465ec9a3dabc6a5ac923f60dcc082380ca403e9 (patch)
treed6b077681db5c47285d8171f69ed4b2457bc6c02 /debug
parent4c26cbe63e8b7b282894c5640a2975c32c7bcb1b (diff)
downloadorg.eclipse.cdt-5465ec9a3dabc6a5ac923f60dcc082380ca403e9.tar.gz
org.eclipse.cdt-5465ec9a3dabc6a5ac923f60dcc082380ca403e9.tar.xz
org.eclipse.cdt-5465ec9a3dabc6a5ac923f60dcc082380ca403e9.zip
Bug 344408: Cannot show mixed-mode disassembly when doing project-less debug
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/ProgramRelativePathSourceContainer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/ProgramRelativePathSourceContainer.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/ProgramRelativePathSourceContainer.java
index bbd45d51d4..db35ef8bd3 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/ProgramRelativePathSourceContainer.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/ProgramRelativePathSourceContainer.java
@@ -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

Back to the top