Skip to content
  1. Apr 21, 2012
  2. Apr 20, 2012
  3. Apr 19, 2012
  4. Apr 18, 2012
  5. Apr 17, 2012
  6. Apr 16, 2012
    • Greg Clayton's avatar
      Fixed the ability to load multiple __LINKEDIT segments at the same address for... · 1e8ac36b
      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
      1e8ac36b
    • Johnny Chen's avatar
      Add the capability of supplying the pre/post-flight functions to the test suite such that · 44d24971
      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
      44d24971
  7. Apr 14, 2012
    • Greg Clayton's avatar
      Added a new host function that allows us to run shell command and get the... · d1cf11a7
      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
      d1cf11a7
    • Sean Callanan's avatar
      Added a --lldb option to override the location · f5c87882
      Sean Callanan authored
      of LLDB.framework.
      
      llvm-svn: 154728
      f5c87882
    • Sean Callanan's avatar
      Made sure that the collections of mutexes used in · 2a7d2040
      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
      2a7d2040
    • Johnny Chen's avatar
      Patch from Viktor Kutuzov <vkutuzov@accesssoftek.com>: · 7b9f93a1
      Johnny Chen authored
      Hello everyone,
       
      please find the attached patch for TOT and lldb-platform-work branch, which provides the following changes:
       - fixed a crash in the ProcessPOSIX constructor when an executable module object is not yet created.
       - added support for the multi instanciated FreeBSD platform objects (the local host and remote as example).
       - enabled the remote gdb plugin on FreeBSD.
      
      llvm-svn: 154724
      7b9f93a1
Loading