mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00
Bug 532592: [tests] use disassembly mode supported on GDB >= 7.5
Previous code was only supported on GDB >= 8.0 with /s was introduced to disassemble command. Change-Id: Ic82b43c13e0567972d0a032325b12df4786a7ce3
This commit is contained in:
parent
6a0de9f520
commit
06273ad9fb
1 changed files with 4 additions and 1 deletions
|
@ -706,12 +706,15 @@ public class GDBRemoteTracepointsTest extends BaseParametrizedTestCase {
|
|||
// on an instruction < 4 bytes long. We can use that to verify how big
|
||||
// each instruction is.
|
||||
|
||||
// The disassembly does not give the required information on older GDBs.
|
||||
assumeGdbVersionAtLeast(ITestConstants.SUFFIX_GDB_7_5);
|
||||
|
||||
IContainerDMContext containerDmc = SyncUtil.getContainerContext();
|
||||
Query<MIInfo> query = new Query<MIInfo>() {
|
||||
@Override
|
||||
protected void execute(DataRequestMonitor<MIInfo> rm) {
|
||||
fGdbControl.queueCommand(
|
||||
fCommandFactory.createMIInterpreterExecConsole(containerDmc, "disassemble /rs foo"), rm);
|
||||
fCommandFactory.createMIInterpreterExecConsole(containerDmc, "disassemble /rm foo"), rm);
|
||||
}
|
||||
};
|
||||
fGdbControl.getExecutor().execute(query);
|
||||
|
|
Loading…
Add table
Reference in a new issue