summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/default-constructor
Commit message (Collapse)AuthorAgeFilesLines
* Add fuzz call to SBStringList.AppendString(None). LLDB should not crash.Johnny Chen2011-12-201-0/+1
| | | | llvm-svn: 146935
* Add a test sequence which passes None to lldb.SBFileSpec(). LLDB should not ↵Johnny Chen2011-12-191-0/+6
| | | | | | crash. llvm-svn: 146922
* Tes passing None to SetErrorString() and SetErrorStringWithFormat().Johnny Chen2011-12-191-0/+2
| | | | llvm-svn: 146919
* Add a fuzz call for SBCommunication: obj.connect(None).Johnny Chen2011-12-191-0/+1
| | | | llvm-svn: 146912
* Add fuzz call for newly added method SBTarget.GetInstructions().Johnny Chen2011-12-151-0/+1
| | | | llvm-svn: 146696
* Add fuzz calls for newly added SBProcess methods. Fix a typo in the audodoc ↵Johnny Chen2011-12-151-0/+3
| | | | | | of SBProcess.ReadCStringFromMemory(). llvm-svn: 146695
* http://llvm.org/bugs/show_bug.cgi?id=11560 lldb::SBTarget::FindFirstType ↵Johnny Chen2011-12-141-0/+1
| | | | | | | | crashes when passed None Add null checks to several functions. Plus add test scenario for passing None to SBTarget.FindFirstType(None) and friends. llvm-svn: 146540
* SBProcess.PutSTDIN() needs to be properly typemapped when swigging,Johnny Chen2011-11-281-1/+1
| | | | | | | | | | | | | | | | | so that we can do Python scripting like this: target = self.dbg.CreateTarget(self.exe) self.dbg.SetAsync(True) process = target.LaunchSimple(None, None, os.getcwd()) process.PutSTDIN("Line 1 Entered.\n") process.PutSTDIN("Line 2 Entered.\n") process.PutSTDIN("Line 3 Entered.\n") Add TestProcessIO.py to exercise the process IO API: PutSTDIN()/GetSTDOUT()/GetSTDERR(). llvm-svn: 145282
* Add test cases for setting condition on a watchpoint for both command and API.Johnny Chen2011-10-171-0/+2
| | | | llvm-svn: 142291
* Add SBWatchpoint::GetError() API, which is not currently populated as yet.Johnny Chen2011-10-141-0/+2
| | | | llvm-svn: 141979
* Add a test case to exercise the newly added SB API:Johnny Chen2011-10-141-2/+3
| | | | | | | lldb::SBWatchpoint SBTarget::WatchAddress (lldb::addr_t addr, size_t size, bool read, bool write) llvm-svn: 141931
* SBValue::Watch() and SBValue::WatchPointee() are now the official API for ↵Johnny Chen2011-10-145-14/+14
| | | | | | | | | | | | | | | | | | creating a watchpoint for either the variable encapsulated by SBValue (Watch) or the pointee encapsulated by SBValue (WatchPointee). Removed SBFrame::WatchValue() and SBFrame::WatchLocation() API as a result of that. Modified the watchpoint related test suite to reflect the change. Plus replacing WatchpointLocation with Watchpoint throughout the code base. There are still cleanups to be dome. This patch passes the whole test suite. Check it in so that we aggressively catch regressions. llvm-svn: 141925
* Add fuzz call for SBBreakpointLocation.GetAddress().Johnny Chen2011-10-071-0/+1
| | | | llvm-svn: 141443
* Add fuzz call for sub-section iteration for SBSection.Johnny Chen2011-10-031-0/+2
| | | | llvm-svn: 141041
* Add SBSection API to the fuzz testing.Johnny Chen2011-10-032-0/+30
| | | | llvm-svn: 141039
* Add fuzz call for watchpoint location iterator, too.Johnny Chen2011-10-031-0/+2
| | | | llvm-svn: 141036
* Add fuzz calls for various iterators, too.Johnny Chen2011-10-0312-1/+31
| | | | llvm-svn: 141035
* Add SBTarget::GetLastCreatedWatchpointLocation() API and export to the ↵Johnny Chen2011-09-271-0/+8
| | | | | | | | | | | Python interface. Also add rich comparison methods (__eq__ and __ne__) for SBWatchpointLocation. Modify TestWatchpointLocationIter.py to exercise the new APIs. Add fuzz testings for the recently added SBTarget APIs related to watchpoint manipulations. llvm-svn: 140633
* Add fuzz testing for newly added SBWatchpointLocation API.Johnny Chen2011-09-272-0/+28
| | | | llvm-svn: 140632
* Add FindValue() and WatchValue() fuzz calls to the mix.Johnny Chen2011-09-241-0/+3
| | | | llvm-svn: 140439
* Added to the public API to allow symbolication:Greg Clayton2011-09-242-2/+2
| | | | | | | | | | | | | | | | | - New SBSection objects that are object file sections which can be accessed through the SBModule classes. You can get the number of sections, get a section at index, and find a section by name. - SBSections can contain subsections (first find "__TEXT" on darwin, then us the resulting SBSection to find "__text" sub section). - Set load addresses for a SBSection in the SBTarget interface - Set the load addresses of all SBSection in a SBModule in the SBTarget interface - Add a new module the an existing target in the SBTarget interface - Get a SBSection from a SBAddress object This should get us a lot closer to being able to symbolicate using LLDB through the public API. llvm-svn: 140437
* Add fuzz calls for added API methods: FindFirstType(), FindTypes(), and ↵Johnny Chen2011-09-151-0/+3
| | | | | | GetSourceManager(). llvm-svn: 139857
* Add fuzz calls to newly added methods: GetAsync() and ↵Johnny Chen2011-09-151-0/+2
| | | | | | SetSelectedTarget(SBTarget). llvm-svn: 139855
* Add new SBAddress APIs to the fuzz tests.Johnny Chen2011-08-151-0/+8
| | | | llvm-svn: 137625
* On second thought, add the IsValid() method to SBTypeList, making it similar ↵Johnny Chen2011-08-051-4/+2
| | | | | | | | to SBSymbolContextList and SBValueList. Modify the test suite accordingly. llvm-svn: 136990
* Fixed test suite failure of test_SBTypeList().Johnny Chen2011-08-051-1/+4
| | | | | | | | SBTypeList does not have IsValid() method defined. It's always valid in a sense. So the Python's truth value testing in turn delegates to __len__() method, which is defined for SBTypeList, and returns 0. llvm-svn: 136985
* Remove expectedFailure decorator for test_SBType, which does not take an ↵Johnny Chen2011-08-052-30/+15
| | | | | | | | | empty constructor after the recent changes. And remove expectedFailure decorator for test_SBTypeMember, which no longer exists after the recent changes, replace it with test_SBTypeList. llvm-svn: 136947
* Public API changes:Enrico Granata2011-07-291-0/+2
| | | | | | | | | | | | | | | | | | | | | - Completely new implementation of SBType - Various enhancements in several other classes Python synthetic children providers for std::vector<T>, std::list<T> and std::map<K,V>: - these return the actual elements into the container as the children of the container - basic template name parsing that works (hopefully) on both Clang and GCC - find them in examples/synthetic and in the test suite in functionalities/data-formatter/data-formatter-python-synth New summary string token ${svar : - the syntax is just the same as in ${var but this new token lets you read the values coming from the synthetic children provider instead of the actual children - Python providers above provide a synthetic child len that returns the number of elements into the container Full bug fix for the issue in which getting byte size for a non-complete type would crash LLDB Several other fixes, including: - inverted the order of arguments in the ClangASTType constructor - EvaluationPoint now only returns SharedPointer's to Target and Process - the help text for several type subcommands now correctly indicates argument-less options as such llvm-svn: 136504
* Add new API for SBAddress to the fuzz test:Johnny Chen2011-07-221-0/+1
| | | | | | | SetLoadAddress (lldb::addr_t load_addr, lldb::SBTarget &target); llvm-svn: 135793
* Make the SBAddress class easier to use when using the publicGreg Clayton2011-07-221-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | API. SBTarget changes include changing: bool SBTarget::ResolveLoadAddress (lldb::addr_t vm_addr, lldb::SBAddress& addr); to be: lldb::SBAddress SBTarget::ResolveLoadAddress (lldb::addr_t vm_addr); SBAddress can how contruct itself using a load address and a target which can be used to resolve the address: SBAddress (lldb::addr_t load_addr, lldb::SBTarget &target); This will actually just call the new SetLoadAddress accessor: void SetLoadAddress (lldb::addr_t load_addr, lldb::SBTarget &target); This function will always succeed in making a SBAddress object that can be used in API calls (even if "target" isn't valid). If "target" is valid and there are sections currently loaded, then it will resolve the address to a section offset address if it can. Else an address with a NULL section and an offset that is the "load_addr" that was passed in. We do this because a load address might be from the heap or stack. llvm-svn: 135770
* Added the ability to get synthetic child values from SBValue objects thatGreg Clayton2011-07-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | represent pointers and arrays by adding an extra parameter to the SBValue SBValue::GetChildAtIndex (uint32_t idx, DynamicValueType use_dynamic, bool can_create_synthetic); The new "can_create_synthetic" will allow you to create child values that aren't actually a part of the original type. So if you code like: int *foo_ptr = ... And you have a SBValue that contains the value for "foo_ptr": SBValue foo_value = ... You can now get the "foo_ptr[12]" item by doing this: v = foo_value.GetChiltAtIndex (12, lldb.eNoDynamicValues, True); Normall the "foo_value" would only have one child value (an integer), but we can create "synthetic" child values by treating the pointer as an array. Likewise if you have code like: int array[2]; array_value = .... v = array_value.GetChiltAtIndex (0); // Success, v will be valid v = array_value.GetChiltAtIndex (1); // Success, v will be valid v = array_value.GetChiltAtIndex (2); // Fail, v won't be valid, "2" is not a valid zero based index in "array" But if you use the ability to create synthetic children: v = array_value.GetChiltAtIndex (0, lldb.eNoDynamicValues, True); // Success, v will be valid v = array_value.GetChiltAtIndex (1, lldb.eNoDynamicValues, True); // Success, v will be valid v = array_value.GetChiltAtIndex (2, lldb.eNoDynamicValues, True); // Success, v will be valid llvm-svn: 135292
* Add some comment.Johnny Chen2011-07-081-0/+1
| | | | llvm-svn: 134769
* o TestEvents.py:Johnny Chen2011-07-081-0/+1
| | | | | | | | | | | | | | | | Add a usage example of SBEvent APIs. o SBEvent.h and SBListener.h: Add method docstrings for SBEvent.h and SBListener.h, and example usage of SBEvent into the class docstring of SBEvent. o lldb.swig: Add typemap for SBEvent::SBEvent (uint32_t event, const char *cstr, uint32_t cstr_len) so that we can use, in Python, obj2 = lldb.SBEvent(0, "abc") to create an SBEvent. llvm-svn: 134766
* The Python API does not need SBEvent::BroadcasterMatchesPtr() when ↵Johnny Chen2011-07-071-1/+0
| | | | | | SBEvent::BroadcasterMatchesRef() suffices. llvm-svn: 134659
* 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
* 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
OpenPOWER on IntegriCloud