Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2010-03-02 08:02:45 +0000
committerAnton Leherbauer2010-03-02 08:02:45 +0000
commit8e1def1e775de9869074cfa9aca4fcd96821b9a8 (patch)
tree0a95f93d1bf739ee4d968792a974d7d590fcb4df /dsf/org.eclipse.cdt.dsf.ui
parent736f8163347325c8c8a860d57444cba76cbd2df9 (diff)
downloadorg.eclipse.cdt-8e1def1e775de9869074cfa9aca4fcd96821b9a8.tar.gz
org.eclipse.cdt-8e1def1e775de9869074cfa9aca4fcd96821b9a8.tar.xz
org.eclipse.cdt-8e1def1e775de9869074cfa9aca4fcd96821b9a8.zip
[302875] Add comment for clarification
Diffstat (limited to 'dsf/org.eclipse.cdt.dsf.ui')
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java
index 82709f52664..4ec87ca3b18 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java
@@ -1901,6 +1901,8 @@ public abstract class DisassemblyPart extends WorkbenchPart implements IDisassem
private BigInteger getTopAddress() {
BigInteger topAddress = getAddressOfLine(fViewer.getTopIndex());
if (topAddress.equals(fStartAddress)) {
+ // in rare cases, the top line can be '...'
+ // don't use it as reference, take the next line
topAddress = getAddressOfLine(fViewer.getTopIndex() + 1);
}
return topAddress;

Back to the top