Skip to content
  1. Jan 24, 2012
    • Johnny Chen's avatar
      Modify redo.py script so that if sessin_dir is left unspecified, it uses the heuristic · d0077903
      Johnny Chen authored
      to find the possible session directories with names starting with %Y-%m-%d- (for example,
      2012-01-23-) and employs the one with the latest timestamp.  For example:
      
      johnny:/Volumes/data/lldb/svn/latest/test $ ./redo.py 
      Using session dir path: /Volumes/data/lldb/svn/latest/test/2012-01-23-11_28_30
      adding filterspec: DisassembleRawDataTestCase.test_disassemble_raw_data
      Running ./dotest.py  -C clang  -v -t -f DisassembleRawDataTestCase.test_disassemble_raw_data
      LLDB build dir: /Volumes/data/lldb/svn/latest/build/Debug
      LLDB-108
      Path: /Volumes/data/lldb/svn/latest
      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: 148710
      Node Kind: directory
      Schedule: normal
      Last Changed Author: gclayton
      Last Changed Rev: 148650
      Last Changed Date: 2012-01-21 18:55:08 -0800 (Sat, 21 Jan 2012)
      
      
      
      Session logs for test failures/errors/unexpected successes will go into directory '2012-01-23-17_04_48'
      Command invoked: python ./dotest.py -C clang -v -t -f DisassembleRawDataTestCase.test_disassemble_raw_data
      
      Configuration:  compiler=clang
      ----------------------------------------------------------------------
      Collected 1 test
      
      Change dir to: /Volumes/data/lldb/svn/latest/test/python_api/disassemble-raw-data
      1: test_disassemble_raw_data (TestDisassembleRawData.DisassembleRawDataTestCase)
         Test disassembling raw bytes with the API. ... 
      Raw bytes:    ['0x48', '0x89', '0xe5']
      Disassembled: movq   %rsp, %rbp
      ok
      Restore dir to: /Volumes/data/lldb/svn/latest/test
      
      ----------------------------------------------------------------------
      Ran 1 test in 0.233s
      
      OK
      
      llvm-svn: 148766
      d0077903
  2. Jan 23, 2012
  3. Jan 21, 2012
  4. Jan 19, 2012
    • Johnny Chen's avatar
      rdar://problem/10712130 · a28b89c7
      Johnny Chen authored
      Fixed an issue where backtick char is not properly honored when setting the frame-format variable, like the following:
      
      (lldb) settings set frame-format frame #${frame.index}: ${frame.pc}{ ${module.file.basename}{`${function.name-with-args}${function.pc-offset}}}{ at ${line.file.basename}:${line.number}}\n
      (lldb) settings show frame-format
      frame-format (string) = "frame #${frame.index}: ${frame.pc}{ `${module.file.basename}{${function.name-with-args}${function.pc-offset}}}{` at ${line.file.basename}:${line.number}}\n"
      (lldb)
      
      o CommandObjectSettings.h/.cpp:
      
        Modify the command object impl to require raw command string instead of parsed command string,
        which also fixes an outstanding issue that customizing the prompt with trailing spaces doesn't
        work.
      
      o Args.cpp:
      
        During CommandInterpreter::HandleCommand(), there is a PreprocessCommand phase which already
        strips/processes pairs of backticks as an expression eval step.  There's no need to treat
        a backtick as starting a quote.
      
      o TestAbbreviations.py and change_prompt.lldb:
      
        Fixed incorrect test case/logic.
      
      o TestSettings.py:
      
        Remove expectedFailure decorator.
      
      llvm-svn: 148491
      a28b89c7
  5. Jan 18, 2012
  6. Jan 17, 2012
  7. Jan 13, 2012
  8. Jan 12, 2012
    • Johnny Chen's avatar
      rdar://problem/10492827 · 5886fb5b
      Johnny Chen authored
      SBProcess.GetSTDERR() not getting stderr of the launched process
      
      Since we are launch the inferior with:
      
          process = target.LaunchSimple(None, None, os.getcwd())
      
      i.e., without specifying stdin/out/err.  A pseudo terminal is used for
      handling the process I/O, and we are satisfied once the expected output
      appears in process.GetSTDOUT().
      
      llvm-svn: 147983
      5886fb5b
  9. Jan 11, 2012
  10. Jan 10, 2012
    • Johnny Chen's avatar
      Refactor the test/types directory to reduce some stupid reduant code. · c256b99a
      Johnny Chen authored
      Also add test cases to the test suite to exercise displaying of variables captured inside a block (Darwin-only).
      
      llvm-svn: 147828
      c256b99a
    • Johnny Chen's avatar
      Add a CFLAGS_EXTRAS make variable to be able to pass things (like... · beac8f99
      Johnny Chen authored
      Add a CFLAGS_EXTRAS make variable to be able to pass things (like '-DTEST_BLOCK_CAPTURED_VARS') to the compile phase.
      
      Plus add a DYLIB_ONLY make variable that can be used to turn off compilation/building of a.out. Example:
      
      [16:39:21] johnny:/Volumes/data/lldb/svn/trunk/test/lang/c/global_variables $ make clean
      rm -rf "a.out" "a.out.dSYM"  main.o main.d a.o a.d liba.dylib liba.dylib.dSYM
      [16:39:24] johnny:/Volumes/data/lldb/svn/trunk/test/lang/c/global_variables $ make DYLIB_ONLY=YES
      clang -gdwarf-2 -O0   -arch x86_64   -c -o a.o a.c
      clang -gdwarf-2 -O0   -arch x86_64  a.o -install_name "@executable_path/liba.dylib" -dynamiclib -o "liba.dylib"
      [16:39:30] johnny:/Volumes/data/lldb/svn/trunk/test/lang/c/global_variables $
      
      llvm-svn: 147821
      beac8f99
    • Greg Clayton's avatar
      Update makefile rules to support C++ files in shared libraries and fix how · d50d2380
      Greg Clayton authored
      the linker driver is found.
      
      llvm-svn: 147814
      d50d2380
  11. Jan 09, 2012
  12. Jan 07, 2012
  13. Jan 06, 2012
  14. Jan 05, 2012
    • Sean Callanan's avatar
      Fixed a problem in our local Clang's method for · 3c88eae1
      Sean Callanan authored
      performing Objective-C instance variable lookup.
      Previously, it only completed the derived class
      that was the beginning of the search.  Now, as
      it walks up the superclass chain looking for the
      ivar, it completes each superclass in turn.
      
      Also added a testcase covering this issue.
      
      llvm-svn: 147621
      3c88eae1
  15. Dec 29, 2011
    • Greg Clayton's avatar
      <rdar://problem/10546739> · dcad5021
      Greg Clayton authored
      Fixed SBValue::GetValueAsUnsigned() and SBValue::GetValueAsSigned() calls to
      work for bitfields.
      
      llvm-svn: 147332
      dcad5021
  16. Dec 23, 2011
  17. Dec 22, 2011
  18. Dec 21, 2011
    • Sean Callanan's avatar
      The "desired result type" code in the expression · 20bb3aa5
      Sean Callanan authored
      parser has hitherto been an implementation waiting
      for a use.  I have now tied the '-o' option for
      the expression command -- which indicates that the
      result is an Objective-C object and needs to be
      printed -- to the ExpressionParser, which
      communicates the desired type to Clang.
      
      Now, if the result of an expression is determined
      by an Objective-C method call for which there is
      no type information, that result is implicitly
      cast to id if and only if the -o option is passed
      to the expression command.  (Otherwise if there
      is no explicit cast Clang will issue an error.
      This behavior is identical to what happened before
      r146756.)
      
      Also added a testcase for -o enabled and disabled.
      
      llvm-svn: 147099
      20bb3aa5
    • Johnny Chen's avatar
      Fix wrong test method name. · 4b730a73
      Johnny Chen authored
      llvm-svn: 147072
      4b730a73
Loading