mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 12:25:35 +02:00
Bug 516102: Add fs_base as new register in GDB 8.0
Change-Id: Ia0600cca38153139fe0b6fb63f087821e0cd336a
This commit is contained in:
parent
6e95bbbd58
commit
125220eb63
1 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue