1
/*******************************************************************************
2
* Copyright (c) 2010 Ericsson and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Ericsson AB - Initial Implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2;
13
import java.util.Arrays;
14
import java.util.LinkedList;
15
import java.util.List;
17
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
18
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
19
import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest;
20
import org.eclipse.core.runtime.Platform;
21
import org.junit.BeforeClass;
22
import org.junit.runner.RunWith;
24
@RunWith(BackgroundRunner.class)
25
public class MIRegistersTest_7_2 extends MIRegistersTest {
27
public static void beforeClassMethod_7_2() {
28
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2);
31
// GDB's list of registers is different with GDB 7.2
33
protected List<String> get_X86_REGS() {
34
List<String> list = new LinkedList<String>(Arrays.asList("eax","ecx","edx","ebx","esp","ebp","esi","edi","eip","eflags",
35
"cs","ss","ds","es","fs","gs","st0","st1","st2","st3",
36
"st4","st5","st6","st7","fctrl","fstat","ftag","fiseg","fioff","foseg",
37
"fooff","fop","xmm0","xmm1","xmm2","xmm3","xmm4","xmm5","xmm6","xmm7",
38
"mxcsr",/*"","","","","","","","",*/"orig_eax",
39
"al","cl","dl","bl","ah","ch","dh","bh","ax","cx",
40
"dx","bx",/*"",*/"bp","si","di","mm0","mm1","mm2","mm3",
41
"mm4","mm5","mm6","mm7"));
42
// On Windows, gdb doesn't report "orig_eax" as a register. Apparently it does on Linux
43
if (Platform.getOS().equals(Platform.OS_WIN32)) {
44
list.remove("orig_eax");