~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIRegistersTest_7_2.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
7
 * 
 
8
 * Contributors:
 
9
 *     Ericsson AB              - Initial Implementation
 
10
 *******************************************************************************/
 
11
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2;
 
12
 
 
13
import java.util.Arrays;
 
14
import java.util.LinkedList;
 
15
import java.util.List;
 
16
 
 
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;
 
23
 
 
24
@RunWith(BackgroundRunner.class)
 
25
public class MIRegistersTest_7_2 extends MIRegistersTest {
 
26
        @BeforeClass
 
27
        public static void beforeClassMethod_7_2() {
 
28
                setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2);
 
29
        }
 
30
        
 
31
        // GDB's list of registers is different with GDB 7.2
 
32
        @Override
 
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");
 
45
            }
 
46
                return list;
 
47
        }
 
48
 
 
49
}