Skip to content

Commit e0e8ce7

Browse files
committed
[lldb] add RISCV target specific info in API tests
Add information about RISCV first register in python API testsuite, that is used to check register readability in tests. Fixed tests on RISCV target: TestBreakpointByFileColonLine.BreakpointByLineAndColumnTestCase TestAddressBreakpoints.AddressBreakpointTestCase TestBreakpointAutoContinue.BreakpointAutoContinue TestInterruptBacktrace.TestInterruptingBacktrace TestBadAddressBreakpoints.BadAddressBreakpointTestCase TestScriptedResolver.TestScriptedResolver TestStopHookScripted.TestStopHooks TestBreakpointConditions.BreakpointConditionsTestCase TestLocalVariables.LocalVariablesTestCase TestFindLineEntry.FindLineEntry TestScriptedResolver.TestScriptedResolver TestInlineSourceFiles.InlineSourceFilesTestCase TestModuleAndSection.ModuleAndSectionAPIsTestCase TestFrameVar.TestFrameVar TestInferiorAssert.AssertingInferiorTestCase TestInferiorCrashing.CrashingInferiorTestCase TestInferiorCrashingStep.CrashingInferiorStepTestCase TestRegistersIterator.RegistersIteratorTestCase TestCoroutineHandle.TestCoroutineHandle TestWithLimitDebugInfo.TestWithLimitDebugInfo TestLLDBIterator.LLDBIteratorTestCase TestMemoryWrite.MemoryWriteTestCase TestNestedTemplate.NestedTemplateTestCase TestParrayVrsCharArrayChild.TestParrayVrsCharArrayChild TestRecursiveInferior.CrashingRecursiveInferiorTestCase TestRecursiveInferiorStep.CrashingRecursiveInferiorStepTestCase TestRunLocker.TestRunLocker TestSampleTest.RenameThisSampleTestTestCase TestUniqueTypes3.UniqueTypesTestCase3 TestPrintStackTraces.ThreadsStackTracesTestCase TestUnicodeSymbols.TestUnicodeSymbols TestUnusedInlinedParameters.TestUnusedInlinedParameters TestValueVarUpdate.ValueVarUpdateTestCase TestPtrRef2Typedef.PtrRef2TypedefTestCase TestDataFormatterStdIterator.StdIteratorDataFormatterTestCase TestDataFormatterStdString.StdStringDataFormatterTestCase TestDataFormatterStdVBool.StdVBoolDataFormatterTestCase
1 parent ac4b6b6 commit e0e8ce7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/packages/Python/lldbsuite/test/lldbplatformutil.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def check_first_register_readable(test_case):
3434
test_case.expect("register read r0", substrs=["r0 = 0x"])
3535
elif arch in ["powerpc64le"]:
3636
test_case.expect("register read r0", substrs=["r0 = 0x"])
37+
elif re.match("^rv(32|64)", arch):
38+
test_case.expect("register read zero", substrs=["zero = 0x"])
3739
else:
3840
# TODO: Add check for other architectures
3941
test_case.fail(

0 commit comments

Comments
 (0)