Skip to content
  1. Sep 20, 2010
  2. Sep 19, 2010
  3. Sep 18, 2010
  4. Sep 17, 2010
  5. Sep 16, 2010
  6. Sep 15, 2010
  7. Sep 14, 2010
    • Johnny Chen's avatar
      Fixed an error in Debugger::UpdateExecutionContext() where an invalid index ID 0 · c13ee52c
      Johnny Chen authored
      was used to set the selected thread if none was selected.  Use a more robust
      API to accomplish the task.
      
      Also fixed an error found, while investigating, in CommandObjectThreadSelect::
      Execute() where the return status was not properly set if successful.
      
      As a result, both the stl step-in test cases with expectedFailure decorators now
      passed.
      
      llvm-svn: 113825
      c13ee52c
  8. 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
    • Johnny Chen's avatar
      Updated the expected matching strings. · 9440d1c0
      Johnny Chen authored
      llvm-svn: 113756
      9440d1c0
    • Johnny Chen's avatar
      Updated the expected matching strings. · 661f8069
      Johnny Chen authored
      llvm-svn: 113755
      661f8069
    • Johnny Chen's avatar
      Updated the expected matching strings, and added a radar comment. · 8458405a
      Johnny Chen authored
      llvm-svn: 113753
      8458405a
    • Johnny Chen's avatar
      Updated the expected matching strings. · e00234e0
      Johnny Chen authored
      llvm-svn: 113751
      e00234e0
    • Johnny Chen's avatar
    • Johnny Chen's avatar
      9aae728e
    • Greg Clayton's avatar
      A few modifications to the class arrays test case. · 0c5550a9
      Greg Clayton authored
      llvm-svn: 113732
      0c5550a9
    • Greg Clayton's avatar
      I made this example after noting that I was unable to display an unsized · ac32b4dd
      Greg Clayton authored
      static class array. It turns out that gcc 4.2 will emit DWARF that correctly
      describes the PointType, but it will incorrectly emit debug info for the
      "g_points" array where the following things are wrong:
       - the DW_TAG_array_type won't have a subrange info
       - the DW_TAG_variable for "g_points" won't have a valid byte size, so even
         though we know the size of PointType, we can't infer the actual size
         of the array by dividing the size of the variable by the number of
         elements.
      
      We want to make sure clang and llvm-gcc handle this correctly.
      
      llvm-svn: 113730
      ac32b4dd
  9. Sep 11, 2010
    • Johnny Chen's avatar
      Added [-o <one-liner>] to the "breakpoint command add" lldb command to be able · 39d7d4f0
      Johnny Chen authored
      to specify a one-liner (either scripting or lldb command) inline.
      
      Refactored CommandObjectBreakpointCommandAdd::Execute() a little bit and added
      some comments.
      
      Sn now, we use:
      
      breakpoint command add -p 1 -o "conditional_break.stop_if_called_from_a()"
      
      to specify a Python one-liner as the callback for breakpoint #1.
      
      llvm-svn: 113672
      39d7d4f0
  10. Sep 10, 2010
Loading