Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2017-06-09 18:20:39 -0400
committerJonah Graham2017-06-22 10:49:15 -0400
commit125220eb635e23345b7df22dd540e1d057f3a4f3 (patch)
treed2932f7b4e2e2ff60e291023164a2df84152683f /dsf-gdb
parent6e95bbbd58ea714ebc6272747ef9f3806f2c8ea4 (diff)
downloadorg.eclipse.cdt-125220eb635e23345b7df22dd540e1d057f3a4f3.tar.gz
org.eclipse.cdt-125220eb635e23345b7df22dd540e1d057f3a4f3.tar.xz
org.eclipse.cdt-125220eb635e23345b7df22dd540e1d057f3a4f3.zip
Bug 516102: Add fs_base as new register in GDB 8.0
Diffstat (limited to 'dsf-gdb')
-rw-r--r--dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBPatternMatchingExpressionsTest.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBPatternMatchingExpressionsTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBPatternMatchingExpressionsTest.java
index 8158a3055c..6fe8014a6d 100644
--- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBPatternMatchingExpressionsTest.java
+++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBPatternMatchingExpressionsTest.java
@@ -410,7 +410,15 @@ public class GDBPatternMatchingExpressionsTest extends BaseParametrizedTestCase
@Test
public void testMatchRegWithStar() throws Throwable {
final String exprString = "=$f*";
- final String[] children = new String[] { "$fctrl", "$fioff", "$fiseg", "$fooff", "$fop", "$foseg", "$fs", "$fstat", "$ftag" };
+ final String[] children;
+ if (isGdbVersionAtLeast("7.12.50")) {
+ // Starting in GDB 8.0 FS_BASE and GS_BASE are exposed
+ // See GDB commit 2735833: amd64-linux: expose system register FS_BASE and GS_BASE for Linux.
+ // Ubuntu is shipping pre-release GDB 8.0, which is versioned as 7.12.50.
+ children = new String[] { "$fctrl", "$fioff", "$fiseg", "$fooff", "$fop", "$foseg", "$fs", "$fs_base", "$fstat", "$ftag" };
+ } else {
+ children = new String[] { "$fctrl", "$fioff", "$fiseg", "$fooff", "$fop", "$foseg", "$fs", "$fstat", "$ftag" };
+ }
SyncUtil.runToLocation("foo");
MIStoppedEvent stoppedEvent = SyncUtil.step(5, StepType.STEP_OVER);

Back to the top