mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
Bug 210863: Source lines are not available in disassembly view for imported executable files. Applied patch from Mike Caraman (Freescale).
This commit is contained in:
parent
c0244a5073
commit
438bcfd697
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* QNX Software Systems - Initial API and implementation
|
||||
* Mike Caraman (Frescale) - https://bugs.eclipse.org/bugs/show_bug.cgi?id=210863
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.debug.internal.core.model;
|
||||
|
||||
|
@ -18,6 +19,7 @@ import java.io.LineNumberReader;
|
|||
|
||||
import org.eclipse.cdt.core.IAddress;
|
||||
import org.eclipse.cdt.core.IAddressFactory;
|
||||
import org.eclipse.cdt.core.model.ITranslationUnit;
|
||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIInstruction;
|
||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIMixedInstruction;
|
||||
import org.eclipse.cdt.debug.core.model.IAsmInstruction;
|
||||
|
@ -167,6 +169,9 @@ public class DisassemblyBlock implements IDisassemblyBlock, IAdaptable {
|
|||
if ( element instanceof IFile ) {
|
||||
file = ((IFile)element).getLocation().toFile();
|
||||
}
|
||||
else if ( element instanceof ITranslationUnit ) {
|
||||
file = ((ITranslationUnit)element).getLocation().toFile();
|
||||
}
|
||||
else if ( element instanceof IStorage ) {
|
||||
file = ((IStorage)element).getFullPath().toFile();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue