- Aug 05, 2011
-
-
Johnny Chen authored
Add the rich comparison methods (__eq__, __ne__) to SBType, too. o lldbtest.py: Add debug utility method TestBase.DebugSBType(). o test/python_api/type: Add tests for exercising SBType/SBTypeList API, including the SBTarget.FindTypes(type_name) API which returns a SBTypeList matching the type_name. llvm-svn: 136975
-
Johnny Chen authored
This patch takes some time because the old Python constructor pattern was not a valid one, and breaks with SBTypeList's __init__ signature. Oops. llvm-svn: 136958
-
Enrico Granata authored
- Added a test case in python-synth Minor code improvements in categories, making them ready for adding new element types llvm-svn: 136957
-
Peter Collingbourne authored
llvm-svn: 136951
-
Johnny Chen authored
Remove expectedFailure decorator for test_SBType, which does not take an 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
-
Enrico Granata authored
llvm-svn: 136945
-
Johnny Chen authored
instead of just the average. llvm-svn: 136932
-
Johnny Chen authored
Add a benchmark comparing lldb vs. gdb with disassembly on a large function (lldb's Driver::MainLoop()). Sample run on my OSX Lion (MacBook Pro): 1: test_run_gdb_then_lldb (TestDisassembly.DisassembleDriverMainLoop) Test disassembly on a large function with lldb vs. gdb. ... gdb benchmark: Avg: 0.201802 (Laps: 5, Total Elapsed Time: 1.009008) lldb benchmark: Avg: 0.109569 (Laps: 5, Total Elapsed Time: 0.547843) lldb_avg/gdb_avg: 0.542952 ok 2: test_run_lldb_then_gdb (TestDisassembly.DisassembleDriverMainLoop) Test disassembly on a large function with lldb vs. gdb. ... lldb benchmark: Avg: 0.109580 (Laps: 5, Total Elapsed Time: 0.547902) gdb benchmark: Avg: 0.201587 (Laps: 5, Total Elapsed Time: 1.007936) lldb_avg/gdb_avg: 0.543588 ok llvm-svn: 136931
-
- Aug 04, 2011
-
-
Sean Callanan authored
expressions that used function pointers. The problem was that IRForTarget previously only scanned the IR for the expression for call instructions; if a function was used in another context, it was ignored. Now LLDB scans the Module for functions that are only declared (not also defined -- so these are externals); it then constructs function pointers for these functions and substitutes them wherever the function is used. Also made some changes so that "expr main" works just as well as "expr &main"; they end up being the same code, but LLDB was generating the result variable in different ways. llvm-svn: 136928
-
Greg Clayton authored
llvm-svn: 136920
-
Johnny Chen authored
llvm-svn: 136919
-
Johnny Chen authored
llvm-svn: 136918
-
Johnny Chen authored
llvm-svn: 136917
-
Johnny Chen authored
There should be nothing unwanted there and a simpe main.cpp (generated from main.cpp.template) which includes SB*.h should compile and link with the LLDB framework. llvm-svn: 136894
-
Enrico Granata authored
llvm-svn: 136887
-
Enrico Granata authored
llvm-svn: 136886
-
Enrico Granata authored
llvm-svn: 136863
-
Enrico Granata authored
New formatting symbol %# can be used in summary strings to get the "count of children" of a variable - accordingly, the test cases for the synthetic providers for the std:: containers have been edited to use ${svar%#} instead of ${svar.len} to print out the count of elements ; the .len synthetic child has been removed from the synthetic providers The synthetic children providers for the std:: containers now return None when asked for children indexes >= num_children() Basic code to support filter names based on regular expressions (WIP) llvm-svn: 136862
-
Enrico Granata authored
APIs to GetValueAsSigned/Unsigned() in SBValue now also accept an SBError parameter to give more info about any problem The synthetic children providers now use the new (safer) APIs to get the values of objects As a side effect, fixed an issue in ValueObject where ResolveValue() was not always updating the value before reading it llvm-svn: 136861
-
Greg Clayton authored
the SBType implementation classes. Fixed LLDB core and the test suite to not use deprecated SBValue APIs. Added a few new APIs to SBValue: int64_t SBValue::GetValueAsSigned(int64_t fail_value=0); uint64_t SBValue::GetValueAsUnsigned(uint64_t fail_value=0) llvm-svn: 136829
-
Enrico Granata authored
Basic handling of Objective-C tagged pointers: return a custom ISA and typename when one is detected llvm-svn: 136819
-
- Aug 03, 2011
-
-
Johnny Chen authored
llvm-svn: 136815
-
Johnny Chen authored
llvm-svn: 136812
-
Johnny Chen authored
llvm-svn: 136809
-
Johnny Chen authored
llvm-svn: 136808
-
Johnny Chen authored
llvm-svn: 136806
-
Jim Ingham authored
to make & delete directories in the test case. Make a real copy of libd.dylib in that directory so the two libraries are actually different. Use (and remove) the DYLD_LIBRARY_PATH to point to the new library. llvm-svn: 136801
-
Johnny Chen authored
llvm-svn: 136800
-
Johnny Chen authored
rdar://problem/9890530 llvm-svn: 136798
-
Johnny Chen authored
Skip the test case test_dyld_library_path(self) because it causes the debugserver to crash. llvm-svn: 136796
-
Jim Ingham authored
debugserver) but set it in the debugger settings (which will just get passed down to the target). llvm-svn: 136793
-
Enrico Granata authored
llvm-svn: 136791
-
Enrico Granata authored
testing for a previous issue where formats in summaries where not enforced in all cases ; removed an unused local variable llvm-svn: 136785
-
Sean Callanan authored
current context. Previously, if there was a variable called "self" available, the expression parser assumed it was inside a method. But class methods in Objective-C also take a "self" parameter, of DWARF type "id". We now detect this properly, and only assume we're in an instance method if "self" is a pointer to an Objective-C object. llvm-svn: 136784
-
Johnny Chen authored
Fixed an issue of wrong (by +2) branch target calculation in the disassembler's symbolic information output. A8.6.23 BLX (immediate T2) Target Address = Align(PC, 4) + offset value rdar://problem/9885678 llvm-svn: 136766
-
Greg Clayton authored
The entire .a file gets cached, and after the first .o file gets loaded, a cached version would get used when trying to extract the skinny slice from a fat BSD archive and would cause a code path to get taken in the BSD archive parser even if we aren't at a BSD archive offset. llvm-svn: 136765
-
Enrico Granata authored
Fixed an issue where the KVO swizzled type would be returned as the dynamic type instead of the actual user-level type - see the test case in lang/objc/objc-dynamic-value for an example Objective-C dynamic type lookup now works for every Objective-C type - previously, true dynamic lookup was only performed for type id llvm-svn: 136763
-
Johnny Chen authored
expr ptr[i]->point.x Radar to be filed. llvm-svn: 136760
-
Greg Clayton authored
only when the executable is set. llvm-svn: 136758
-
Jim Ingham authored
have initialized our shared library state, discard all the modules that didn't make it into the running process. llvm-svn: 136755
-