Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Ryall2007-07-29 15:32:08 +0000
committerKen Ryall2007-07-29 15:32:08 +0000
commit1bf06a9d31e426d9153af91cd65ae0cca8f9c8cd (patch)
tree461ea3de003be1f2730de1153a9842a4d444f30a /debug/org.eclipse.cdt.debug.core
parentc5c666a8b6038e126ecdeefda6b06119c2c71694 (diff)
downloadorg.eclipse.cdt-1bf06a9d31e426d9153af91cd65ae0cca8f9c8cd.tar.gz
org.eclipse.cdt-1bf06a9d31e426d9153af91cd65ae0cca8f9c8cd.tar.xz
org.eclipse.cdt-1bf06a9d31e426d9153af91cd65ae0cca8f9c8cd.zip
Bug 81353, option to view disassembly when stopped in a location with no source.
Diffstat (limited to 'debug/org.eclipse.cdt.debug.core')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupParticipant.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupParticipant.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupParticipant.java
index dbf4e0e07e2..1acfac24a5e 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupParticipant.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupParticipant.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2006 QNX Software Systems and others.
+ * Copyright (c) 2004, 2006, 2007 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,8 +7,9 @@
*
* Contributors:
* QNX Software Systems - Initial API and implementation
- * Nokia - Added support for AbsoluteSourceContainer( 159833 )
- * Nokia - Added support for CSourceNotFoundElement ( 167305 )
+ * Ken Ryall (Nokia) - Added support for AbsoluteSourceContainer( 159833 )
+ * Ken Ryall (Nokia) - Added support for CSourceNotFoundElement ( 167305 )
+ * Ken Ryall (Nokia) - Option to open disassembly view when no source ( 81353 )
*******************************************************************************/
package org.eclipse.cdt.debug.internal.core.sourcelookup;
@@ -69,7 +70,12 @@ public class CSourceLookupParticipant extends AbstractSourceLookupParticipant {
if ( frame != null ) {
name = frame.getFile().trim();
if ( name == null || name.length() == 0 )
- return new Object[] { gfNoSource };
+ {
+ if (object instanceof IDebugElement)
+ return new Object[] { new CSourceNotFoundElement( (IDebugElement) object ) };
+ else
+ return new Object[] { gfNoSource };
+ }
}
}
else if ( object instanceof String ) {

Back to the top