mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Make disassembly default end address relative to start
As it is now, if you pass a start address but no end address (null), the disassembled range will be [startAddress, $pc + 100], which does not quite make sense. I think the intention was to have the default end address be whatever the start address is, + 100. Change-Id: I1399cc116ecde6cfbdb2f1ec54a181e64a7f4c5f Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
This commit is contained in:
parent
6b512c3be4
commit
989d77bf7a
1 changed files with 2 additions and 2 deletions
|
@ -124,7 +124,7 @@ public class MIDisassembly extends AbstractDsfService implements IDisassembly {
|
|||
}
|
||||
|
||||
String start = (startAddress != null) ? startAddress.toString() : "$pc"; //$NON-NLS-1$
|
||||
String end = (endAddress != null) ? endAddress.toString() : "$pc + 100"; //$NON-NLS-1$
|
||||
String end = (endAddress != null) ? endAddress.toString() : start + " + 100"; //$NON-NLS-1$
|
||||
fConnection.queueCommand(fCommandFactory.createMIDataDisassemble(context, start, end, mode),
|
||||
new DataRequestMonitor<MIDataDisassembleInfo>(getExecutor(), drm) {
|
||||
@Override
|
||||
|
@ -206,7 +206,7 @@ public class MIDisassembly extends AbstractDsfService implements IDisassembly {
|
|||
}
|
||||
|
||||
String start = (startAddress != null) ? startAddress.toString() : "$pc"; //$NON-NLS-1$
|
||||
String end = (endAddress != null) ? endAddress.toString() : "$pc + 100"; //$NON-NLS-1$
|
||||
String end = (endAddress != null) ? endAddress.toString() : start + " + 100"; //$NON-NLS-1$
|
||||
fConnection.queueCommand(fCommandFactory.createMIDataDisassemble(context, start, end, mode),
|
||||
new DataRequestMonitor<MIDataDisassembleInfo>(getExecutor(), drm) {
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue