Skip to content
  1. Sep 15, 2010
  2. Sep 13, 2010
    • Johnny Chen's avatar
      Extend the build mechanism to allow for specifying the compiler used to build · 1394a4b7
      Johnny Chen authored
      the binaries.
      
      If the build* function is passed the compiler argument, for example, 'llvm-gcc',
      it is passed as a make variable to the make command.  Otherwise, we check the
      LLDB_CC environment variable; if it is defined, it is passed as a make variable
      to the make command.
      
      If neither the compiler keyword argument nor the LLDB_CC environment variable is
      specified, no CC make variable is passed to the make command.  The Makefile gets
      to define the default CC being used.
      
      --------------------------------------------------------------------------------
      Example usage follows:
      
      o Via the keyword argument:
      
      class ArrayTypesTestCase(TestBase):
      
          mydir = "array_types"
      
          @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
          def test_with_dsym_and_run_command(self):
              """Test 'frame variable var_name' on some variables with array types."""
              self.buildDsym(compiler='llvm-gcc')
              self.array_types()
      ...
      
      o Via LLDB_CC environment variable:
      
      $ LLDB_CC=llvm-gcc ./dotest.py -v -t array_types
      ----------------------------------------------------------------------
      Collected 4 tests
      
      test_with_dsym_and_python_api (TestArrayTypes.ArrayTypesTestCase)
      Use Python APIs to inspect variables with array types. ... 
      os command: [['/bin/sh', '-c', 'make clean; make MAKE_DSYM=YES CC=llvm-gcc']]
      output: rm -rf "a.out" "a.out.dSYM"  main.o main.d
      llvm-gcc -arch x86_64 -gdwarf-2 -O0 -arch x86_64 -gdwarf-2 -O0  -c -o main.o main.c
      llvm-gcc -arch x86_64 -gdwarf-2 -O0  main.o -o "a.out"
      /usr/bin/dsymutil  -o "a.out.dSYM" "a.out"
      
      ...
      
      llvm-svn: 113781
      1394a4b7
  3. Sep 07, 2010
  4. Sep 04, 2010
  5. Sep 03, 2010
  6. Sep 02, 2010
  7. Sep 01, 2010
  8. Aug 31, 2010
  9. Aug 30, 2010
    • Johnny Chen's avatar
      Added a system() method to the TestBase class of lldbtest.py, which is actually · 8952a2d5
      Johnny Chen authored
      taken from Python 2.7's subprocess.check_output() convenience function.  The
      purpose of this method is to run the os command with arguments and return its
      output as a byte string.
      
      Modified hello_world/TestHelloWorld.py to have two test cases:
      
      o test_with_dsym_and_run_command
      o test_with_dwarf_and_process_launch_api
      
      with the dsym case conditioned on sys.platform.startswith("darwin") being true.
      The two cases utilize the system() method to invoke "make clean; make MAKE_DYSM=YES/NO"
      to prepare for the appropriate debugging format before running the test logic.
      
      llvm-svn: 112530
      8952a2d5
  10. Aug 28, 2010
  11. Aug 27, 2010
  12. Aug 26, 2010
  13. Aug 25, 2010
  14. Aug 23, 2010
    • Johnny Chen's avatar
      Changed the keyword argument for runCmd()/expect() from 'verbose' to 'trace', · d0190a61
      Johnny Chen authored
      which, defaults to False, and if set to True, will trace lldb command execution
      and result.
      
      Added "-t" command option to the test driver dotest.py which sets the
      LLDB_COMMAND_TRACE environment variable to "YES" and as a result always turns on
      command tracing regardless of the 'trace' keyword argument to runCmd()/expect().
      
      llvm-svn: 111811
      d0190a61
  15. Aug 20, 2010
  16. Aug 17, 2010
  17. Aug 16, 2010
  18. Aug 10, 2010
Loading