Revert "[LoongArch] Eliminate the redundant sign extension of division (#107971)"
[llvm-project.git] / lldb / test / API / python_api / default-constructor / sb_thread.py
blob34eb3db852c381471e6ea8ead16f7245f7347ba4
1 """
2 Fuzz tests an object after the default construction to make sure it does not crash lldb.
3 """
5 import lldb
8 def fuzz_obj(obj):
9 obj.GetStopReason()
10 obj.GetStopReasonDataCount()
11 obj.GetStopReasonDataAtIndex(100)
12 obj.GetStopDescription(256)
13 obj.GetThreadID()
14 obj.GetIndexID()
15 obj.GetName()
16 obj.GetQueueName()
17 obj.StepOver(lldb.eOnlyDuringStepping)
18 obj.StepInto(lldb.eOnlyDuringStepping)
19 obj.StepOut()
20 frame = lldb.SBFrame()
21 obj.StepOutOfFrame(frame)
22 obj.StepInstruction(True)
23 filespec = lldb.SBFileSpec()
24 obj.StepOverUntil(frame, filespec, 1234)
25 obj.RunToAddress(0xABCD)
26 obj.Suspend()
27 obj.Resume()
28 obj.IsSuspended()
29 obj.GetNumFrames()
30 obj.GetFrameAtIndex(200)
31 obj.GetSelectedFrame()
32 obj.SetSelectedFrame(999)
33 obj.GetProcess()
34 obj.GetDescription(lldb.SBStream())
35 obj.Clear()
36 for frame in obj:
37 s = str(frame)
38 len(obj)