Skip to content

Commit b61e932

Browse files
committed
correct var name
1 parent e6faeef commit b61e932

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/test/API/linux/aarch64/gcs/TestAArch64LinuxGCS.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@ def check_gcs_registers(
219219
# Now to prove we can write gcs_features_enabled, disable GCS and continue
220220
# past the fault we caused. Note that although the libc likely locked the
221221
# ability to disable GCS, ptrace bypasses the lock bits.
222-
gcs_enabled &= ~1
223-
self.runCmd(f"register write gcs_features_enabled {gcs_enabled}")
222+
enabled &= ~1
223+
self.runCmd(f"register write gcs_features_enabled {enabled}")
224224
self.expect(
225225
"register read gcs_features_enabled",
226-
substrs=[f"gcs_features_enabled = 0x{gcs_enabled:016x}"],
226+
substrs=[f"gcs_features_enabled = 0x{enabled:016x}"],
227227
)
228228

229229
# With GCS disabled, the invalid guarded control stack pointer is not

0 commit comments

Comments
 (0)