- Apr 23, 2012
-
-
Sean Callanan authored
interpreter. llvm-svn: 155360
-
- Apr 21, 2012
-
-
Jason Molenda authored
llvm-svn: 155272
-
Johnny Chen authored
llvm-svn: 155264
-
Greg Clayton authored
Added code to automatically load the libheap.dylib when ptr_refs, cstr_refs or malloc_info are called. If MallocStackLogging is enabled, then you can now use --stack to dump the backtrace of the code that allocated each malloc block. llvm-svn: 155262
-
Johnny Chen authored
llvm-svn: 155260
-
Greg Clayton authored
Fixed some issues with symbolicating things. Fixed symbolication.add_module() to not use the resolved_path before we have tried to locate it. Fixed crashlog.locate_module_and_debug_symbols() to return true and false correctly. llvm-svn: 155255
-
- Apr 20, 2012
-
-
Jim Ingham authored
Make sure the "synchronous breakpoint callbacks" get called before the thread plan logic gets invoked, and if they ask to continue that should short-circuit the thread plans for that thread. Also add a bit more explanation for how this machinery is supposed to work. Also pass eExecutionPolicyOnlyWhenNeeded, not eExecutionPolicyAlways when evaluating the expression for breakpoint conditions. llvm-svn: 155236
-
Greg Clayton authored
Added logging so we can see when we are trying to complete a forward type and pull in the world. This is due to a compiler bug we are tracking (<rdar://problem/11291658>) where forward decls to classes and types are not properly scoped in namespaces, which results in the current LLDB looking for a type it will find many times in the accelerator tables, but never match. For example, when debugging with clang we get a forward decl like: class AnalysisResolver; And we will look for it everywhere and find many many matches, but the decl context of those matching DIEs is "clang::AnalysisResolver", so we never match anything, yet we pull in waaayyy too much DWARF in the process. To enable this logging enable the "lookups" category in the "dwarf" log channel: (lldb) log enable dwarf lookups llvm-svn: 155233
-
Greg Clayton authored
Don't put the address of the module in the module basename as this hoses up our ability to find shared libraries by name. We now put it into the Module object name. llvm-svn: 155223
-
rdar://problem/11259893Greg Clayton authored
Fixed an issue where iOS debugging would trust the first file it found in the SDK regardless of the UUID not matching. Now we actually get smart and can find modules in ANY of the installed SDKs and remember which SDK is our fallback SDK. llvm-svn: 155184
-
Jim Ingham authored
llvm-svn: 155175
-
Johnny Chen authored
But, still, tearDown() should call super.tearDown(), not super.setUp(). :-) llvm-svn: 155170
-
- Apr 19, 2012
-
-
Johnny Chen authored
rdar://problem/11283401 Example: Collected 1 test 1: test_with_dwarf (TestCallStdStringFunction.ExprCommandCallFunctionTestCase) Test calling std::String member function. ... FAIL ====================================================================== FAIL: test_with_dwarf (TestCallStdStringFunction.ExprCommandCallFunctionTestCase) Test calling std::String member function. ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/data/lldb/svn/ToT/test/lldbtest.py", line 427, in wrapper return func(self, *args, **kwargs) File "/Volumes/data/lldb/svn/ToT/test/expression_command/call-function/TestCallStdStringFunction.py", line 34, in test_with_dwarf self.call_function() File "/Volumes/data/lldb/svn/ToT/test/expression_command/call-function/TestCallStdStringFunction.py", line 48, in call_function substrs = ['Hello world']) File "/Volumes/data/lldb/svn/ToT/test/lldbtest.py", line 1235, in expect msg if msg else EXP_MSG(str, exe)) AssertionError: False is not True : 'Hello world' returns expected result Config=i386-clang ---------------------------------------------------------------------- Ran 1 test in 1.148s FAILED (failures=1) llvm-svn: 155157
-
Johnny Chen authored
llvm-svn: 155152
-
Sean Callanan authored
disassembler fixes. The ARM disassembler is now crash-free on all opcodes. llvm-svn: 155149
-
Johnny Chen authored
to the already existing (test result, test id) to avoid collision and to facilitate postmortem analysis. llvm-svn: 155148
-
Johnny Chen authored
Not a test failure for i386; instead, the test case should be modified to not over-expect type fields for the synthetic childs. rdar://problem/11277013 llvm-svn: 155144
-
Jim Ingham authored
In debug mode, assert when we fail to get the sequence mutex. We need to remove as many places where this can happen as possible. llvm-svn: 155138
-
Jason Molenda authored
llvm-svn: 155093
-
Jim Ingham authored
Switch to setting the write side of the run lock when we call Resume. Then make a PrivateResume that doesn't switch the run-lock state, and use that where we are resuming without changing the public resume state. llvm-svn: 155092
-
Johnny Chen authored
Plus fix some test cases to skip/succeed for i386. llvm-svn: 155087
-
Jim Ingham authored
llvm-svn: 155080
-
Jim Ingham authored
for the plan stack, so assert here if it gets called with an empty plan stack. <rdar://problem/11265974> llvm-svn: 155078
-
Jim Ingham authored
llvm-svn: 155077
-
- Apr 18, 2012
-
-
Greg Clayton authored
Make sure EmulateInstructionARM doesn't have to have "armv4", "armv6", "armv7" as the exact architecture name, the arch name can just start with any of these strings. We need to be able to recognize different variants that might come along and not fail to backtrace completely (which happens when we aren't able to find an architecture that matches) when we don't have exact matches. llvm-svn: 155045
-
Greg Clayton authored
Added an iOS local debugging optimization when reading the __LINKEDIT section data for files in the dyld shared cache. llvm-svn: 154984
-
Greg Clayton authored
Find and allows users to use the cached SDK's that might be in "~/Library/Developer/Xcode/iOS DeviceSupport". Also enabled PlatformRemoteiOS to select an SDK using the build number in case you have mutliple 5.0 SDKs installed: (lldb) platform select remote-ios --build 11C123 llvm-svn: 154978
-
Jason Molenda authored
llvm-svn: 154975
-
Jason Molenda authored
llvm-svn: 154974
-
Sean Callanan authored
Objective-C methods, and Objective-C properties. llvm-svn: 154972
-
Greg Clayton authored
Update the way SDK directories are found so we are not reliant on the old "Latest" symlinks in the DeviceSupport directory. llvm-svn: 154966
-
Greg Clayton authored
llvm-svn: 154965
-
Sean Callanan authored
for the original Decl, for debugging purposes. llvm-svn: 154957
-
- Apr 17, 2012
-
-
Jason Molenda authored
llvm-svn: 154887
-
Sean Callanan authored
which incurs large overheads in terms of type parsing and importing. llvm-svn: 154885
-
- Apr 16, 2012
-
-
Greg Clayton authored
Fixed the ability to load multiple __LINKEDIT segments at the same address for darwin shared cache entries. Now when registering the load address of a section, the DynamicLoader objects can specify if they should warn or not. This will fix the ability to load the nlist entries for shared libraries in the darwin shared caches when no on disk representation is available for a shared library. llvm-svn: 154860
-
Johnny Chen authored
the pre-flight code gets executed during setUp() after the debugger instance is available and the post-flight code gets executed during tearDown() after the debugger instance has done killing the inferior and deleting all the target programs. Example: [11:32:48] johnny:/Volumes/data/lldb/svn/ToT/test $ ./dotest.py -A x86_64 -v -c ../examples/test/.lldb-pre-post-flight functionalities/watchpoint/hello_watchpoint config: {'pre_flight': <function pre_flight at 0x1098541b8>, 'post_flight': <function post_flight at 0x109854230>} LLDB build dir: /Volumes/data/lldb/svn/ToT/build/Debug LLDB-139 Path: /Volumes/data/lldb/svn/ToT URL: https://johnny@llvm.org/svn/llvm-project/lldb/trunk Repository Root: https://johnny@llvm.org/svn/llvm-project Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 Revision: 154753 Node Kind: directory Schedule: normal Last Changed Author: gclayton Last Changed Rev: 154730 Last Changed Date: 2012-04-13 18:42:46 -0700 (Fri, 13 Apr 2012) lldb.pre_flight: def pre_flight(test): __import__("lldb") __import__("lldbtest") print "\nRunning pre-flight function:" print "for test case:", test lldb.post_flight: def post_flight(test): __import__("lldb") __import__("lldbtest") print "\nRunning post-flight function:" print "for test case:", test Session logs for test failures/errors/unexpected successes will go into directory '2012-04-16-11_34_08' Command invoked: python ./dotest.py -A x86_64 -v -c ../examples/test/.lldb-pre-post-flight functionalities/watchpoint/hello_watchpoint compilers=['clang'] Configuration: arch=x86_64 compiler=clang ---------------------------------------------------------------------- Collected 2 tests 1: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) Test a simple sequence of watchpoint creation and watchpoint hit. ... Running pre-flight function: for test case: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) Running post-flight function: for test case: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) ok 2: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) Test a simple sequence of watchpoint creation and watchpoint hit. ... Running pre-flight function: for test case: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) Running post-flight function: for test case: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) ok ---------------------------------------------------------------------- Ran 2 tests in 1.584s OK llvm-svn: 154847
-
- Apr 14, 2012
-
-
Greg Clayton authored
Added a new host function that allows us to run shell command and get the output from them along with the status and signal: Error Host::RunShellCommand (const char *command, const char *working_dir, int *status_ptr, int *signo_ptr, std::string *command_output_ptr, uint32_t timeout_sec); This will allow us to use this functionality in the host lldb_private::Platform, and also use it in our lldb-platform binary. It leverages the existing code in Host::LaunchProcess and ProcessLaunchInfo. llvm-svn: 154730
-
Sean Callanan authored
of LLDB.framework. llvm-svn: 154728
-
Sean Callanan authored
checking for LLDB mutex validity are static so that entries put in there actually persist between calls to error_check_mutex. llvm-svn: 154727
-