mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 12:03:16 +02:00
[302875] Add comment for clarification
This commit is contained in:
parent
736f816334
commit
8e1def1e77
1 changed files with 2 additions and 0 deletions
|
@ -1901,6 +1901,8 @@ public abstract class DisassemblyPart extends WorkbenchPart implements IDisassem
|
||||||
private BigInteger getTopAddress() {
|
private BigInteger getTopAddress() {
|
||||||
BigInteger topAddress = getAddressOfLine(fViewer.getTopIndex());
|
BigInteger topAddress = getAddressOfLine(fViewer.getTopIndex());
|
||||||
if (topAddress.equals(fStartAddress)) {
|
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);
|
topAddress = getAddressOfLine(fViewer.getTopIndex() + 1);
|
||||||
}
|
}
|
||||||
return topAddress;
|
return topAddress;
|
||||||
|
|
Loading…
Add table
Reference in a new issue