summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api
Commit message (Collapse)AuthorAgeFilesLines
...
* Add assert to check the SBModule of SBSymbolContextList returned from ↵Johnny Chen2011-07-071-0/+1
| | | | | | SBTarget.FindFunctions(). llvm-svn: 134651
* Add test cases to exercise the SBTarget.FindFunctions() API.Johnny Chen2011-07-071-0/+33
| | | | llvm-svn: 134646
* Add fuzz calls for SBType::IsPointerType(void *opaque_type).Johnny Chen2011-07-061-0/+2
| | | | llvm-svn: 134551
* Add swig docstrings for SBModule.h, plus ifndef the SBModule::GetUUIDBytes() ↵Johnny Chen2011-07-051-1/+0
| | | | | | | | API out if swig. Fix typos in the comment for Module.h. llvm-svn: 134446
* While we are at it, let's also exercise the similar ↵Johnny Chen2011-06-301-7/+21
| | | | | | | | | | SBModule.FindGlobalVariables() API within the find_global_variables() test method. Skipping test_find_global_variables_with_dwarf(self) due to segmentation fault. llvm-svn: 134118
* Add test cases to TestTargetAPI.py to exercise the newly added ↵Johnny Chen2011-06-292-0/+33
| | | | | | SBTarget.FindGlobalVariables() API. llvm-svn: 134109
* Add fuzz calls for SBModule/SBTarget.FindGlobalVariables(...).Johnny Chen2011-06-292-0/+2
| | | | llvm-svn: 134107
* Add fuzz calls for SBTypeMember.Johnny Chen2011-06-292-0/+28
| | | | llvm-svn: 134098
* Add fuzz calls to SBType, SBValue, and SBValueList.Johnny Chen2011-06-294-0/+75
| | | | | | | | | Fixed crashes for SBValue fuzz calls. And change 'bool SBType::IsPointerType(void)' to 'bool SBType::IsAPointerType(void)' to avoid name collision with the static 'bool SBType::IsPointerType(void *)' function, which SWIG cannot handle. llvm-svn: 134096
* Add fuzz calls for SBTarget and SBThread.Johnny Chen2011-06-293-0/+83
| | | | llvm-svn: 134046
* Add fuzz calls for SBSymbol and SBSymbolContext.Johnny Chen2011-06-283-0/+37
| | | | llvm-svn: 134042
* Add fuzz calls for SBStringList and add obj.Clear() calls for some files.Johnny Chen2011-06-2810-0/+25
| | | | llvm-svn: 134040
* Add fuzz calls for SBModule and SBProcess.Johnny Chen2011-06-283-0/+67
| | | | llvm-svn: 134037
* Add fuzz calls for SBListener.Johnny Chen2011-06-282-0/+26
| | | | llvm-svn: 134029
* Add fuzz calls for SBLineEntry.Johnny Chen2011-06-283-1/+18
| | | | llvm-svn: 134028
* Add fuzz calls for SBInstruction and SBInstructionList.Johnny Chen2011-06-283-0/+36
| | | | llvm-svn: 134020
* Add fuzz calls for SBInputReader.Johnny Chen2011-06-282-0/+16
| | | | llvm-svn: 133972
* Add fuzz calls for SBFrame and SBFunction.Johnny Chen2011-06-273-0/+59
| | | | llvm-svn: 133965
* Add fuzz calls for SBFileSpec.Johnny Chen2011-06-272-0/+17
| | | | llvm-svn: 133956
* Add fuzz calls for SBEvent.Johnny Chen2011-06-272-0/+20
| | | | llvm-svn: 133954
* Move hello_world to now reside under python_api dir.Johnny Chen2011-06-263-0/+199
| | | | llvm-svn: 133890
* Add fuzz calls for SBError.Johnny Chen2011-06-252-0/+22
| | | | llvm-svn: 133850
* Add fuzz calls for SBDebugger.Johnny Chen2011-06-252-0/+54
| | | | llvm-svn: 133848
* Add fuzz calls for SBCompileUnit.Johnny Chen2011-06-242-0/+16
| | | | llvm-svn: 133843
* Add fuzz calls for SBCommunication.Johnny Chen2011-06-242-0/+30
| | | | llvm-svn: 133839
* Add fuzz calls for SBBroadcaster.Johnny Chen2011-06-242-0/+22
| | | | llvm-svn: 133837
* Add fuzz calls for SBBreakpointLocation.Johnny Chen2011-06-242-0/+30
| | | | llvm-svn: 133810
* Add fuzz calls for SBBreakpoint.Johnny Chen2011-06-242-2/+39
| | | | llvm-svn: 133809
* Add fuzz calls for SBBlock.Johnny Chen2011-06-242-0/+20
| | | | llvm-svn: 133780
* Start adding API calls to the invalid SB API object after default construction.Johnny Chen2011-06-242-0/+15
| | | | | | | | It should not crash lldb. This checkin adds calls for SBAddress. llvm-svn: 133778
* o lldbtest.py:Johnny Chen2011-06-231-31/+34
| | | | | | | | | | | | | | | | | | Assign the test method name to self.testMethodName. This can be useful for the test directory (see test/types for a good example) which houses a bunch of executables compiled from different source files. The default build action is to create a.out as the binary executable, which can confuse the module cacheing mechanism and result in the debugger getting a stale image as the target to be debugged, and chaos ensues. o AbstractBase.py, TestThreadAPI.py: Use self.testMethodName to our advantage. o TestLoadUnload.py: Add expected failure marker to test case test_modules_search_paths(). llvm-svn: 133768
* For now, use 'b.out' compiled from main2.cpp as the executable name for ↵Johnny Chen2011-06-231-11/+6
| | | | | | | | test_run_to_address_with_dsym/dwarf() to distinguish between other test cases which use 'a.out' compiled from main.cpp. llvm-svn: 133764
* Add docstring to test_SBSymbolContextList(self) explaining that upon default ↵Johnny Chen2011-06-221-0/+1
| | | | | | construction, the API object is valid. llvm-svn: 133644
* Recent change to SBSymbolContextList (r133498) makes the default constructor ↵Johnny Chen2011-06-221-3/+3
| | | | | | | | return a valid SB API object. Modify the test case to accommodate. llvm-svn: 133602
* Minor module-level docstring change.Johnny Chen2011-06-201-1/+1
| | | | llvm-svn: 133476
* Test lldb Python API object's default constructor and make sure it is invalidJohnny Chen2011-06-201-0/+243
| | | | | | | | | after initial construction. There are two exceptions to the above general rules, though; the API objects are SBCommadnReturnObject and SBStream. llvm-svn: 133475
* Add TestInlinedFrame.py to exercise the newly added SBFrame APIs: ↵Johnny Chen2011-06-204-0/+128
| | | | | | IsInlined() and GetFunctionName(). llvm-svn: 133404
* o lldbutil.py:Johnny Chen2011-06-162-4/+5
| | | | | | | | | | | | | | | | For the print_stacktrace(thread, string_buffer = False) function, if we have debug info for a frame function, let's also emit the args for the current function. o TestFrameUtils.py: Add stronger assertTrue for frame0's args. o TestPrintStackTraces.py: Launch the inferior with ["abc", "xyz"] and expect '(int)argc=3' in the stack traces, since by design the inferior is built with debug info. llvm-svn: 133204
* The extra burden for the Python API test case to assign its process object ↵Johnny Chen2011-06-1513-100/+83
| | | | | | | | | to self.process in order to have its process cleaned up (terminated) upon tearDown is gone for good. Let's simplify a bunch of Python API test cases. llvm-svn: 133097
* Comment out the debug stmts.Johnny Chen2011-06-091-3/+2
| | | | llvm-svn: 132808
* Add rich comparison methods for the SBAddress object.Johnny Chen2011-06-091-1/+6
| | | | | | | | If two SBAddress's have the same module and file address, they are considered equal. Add a test snippet 'sa1 == sa2' to exercise the rich comparison methods for SBAddress. llvm-svn: 132807
* Comment change.Johnny Chen2011-05-261-1/+1
| | | | llvm-svn: 132150
* Simplify test setup; there's no need to pass a customized dictionary here.Johnny Chen2011-05-261-1/+1
| | | | llvm-svn: 132147
* Now that we have added a post-processing step for adding truth value testing toJohnny Chen2011-05-249-60/+60
| | | | | | | those lldb objects which implement the IsValid() method, let's change the rest of the test suite to use the more compact truth value testing pattern (the Python way). llvm-svn: 131970
* Add truth value testing to those lldb Python objects with the IsValid() ↵Johnny Chen2011-05-174-23/+23
| | | | | | | | | | | method definitions. object.__nonzero__(self) is called to implement truth value testing and the built-in operation bool(), via a simple delegation to self.IsValid(). Change tests under python_api/lldbutil to utilize this mechanism. llvm-svn: 131494
* Add implementation of built-in function len() for those lldb containers withJohnny Chen2011-05-161-11/+31
| | | | | | | | | | | | | | | unambiguous iteration support. So that we could, for example: ... REGs = lldbutil.get_GPRs(frame) print "Number of general purpose registers: %d" % len(REGs) for reg in REGs: print "%s => %s" %(reg.GetName(), reg.GetValue()) ... llvm-svn: 131418
* Renamed the test cases more properly to test_lldb_iter_module/breakpoint/farme.Johnny Chen2011-05-161-9/+9
| | | | llvm-svn: 131412
* Clean up the test a little bit; and use lldbutil.get_GPRs(frame) to retrieve ↵Johnny Chen2011-05-131-9/+3
| | | | | | the general purpose register set. llvm-svn: 131324
* Add two utility functions:Johnny Chen2011-05-1210-4/+253
| | | | | | | | | | | o get_parent_frame(frame) o get_args_as_string(frame) to lldbutil.py and create TestFrameUtils.py to exercise the utils. Plus re-arrange the test/python_api/lldbutil to have three directories for testing iteration, process stack traces, and the just added frame utils. llvm-svn: 131213
* Add a utility function get_registers(frame, kind) to get the registers of a ↵Johnny Chen2011-05-101-0/+72
| | | | | | | | | | | given frame and of a given kind. Also add three convenience functions get_GPRs(frame), get_FPRs(frame), and get_ESRs(frame) to get the general purpose registers, the floating point registers, and the exception state registers. Add TestRegistersIterator.py to test these added functions of lldbutil.py. llvm-svn: 131144
OpenPOWER on IntegriCloud