Skip to content
  1. Dec 22, 2011
  2. 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
  3. Dec 20, 2011
  4. Dec 19, 2011
  5. Dec 17, 2011
    • Jim Ingham's avatar
    • Johnny Chen's avatar
      http://llvm.org/bugs/show_bug.cgi?id=11588 · b456b792
      Johnny Chen authored
      valobj.AddressOf() returns None when an address is expected in a SyntheticChildrenProvider
      
      Patch from Enrico Granata:
      
      The problem was that the frozen object created by the expression parser was a copy of the contents of the StgClosure, rather than a pointer to it. Thus, the expression parser was correctly computing the result of the arithmetic&cast operation along with its address, but only saving it in the live object. This meant that the frozen copy acted as an address-less variable, hence the problem.
      
      The fix attached to this email lets the expression parser store the "live address" in the frozen copy of the address when the object is built without a valid address of its own.
      Doing so, along with delegating ValueObjectConstResult to calculate its own address when necessary, solves the issue. I have also added a new test case to check for regressions in this area, and checked that existing test cases pass correctly.
      
      llvm-svn: 146768
      b456b792
  6. Dec 16, 2011
  7. Dec 15, 2011
  8. Dec 14, 2011
  9. Dec 13, 2011
  10. Dec 12, 2011
    • Johnny Chen's avatar
      Rename some test methods, with no functionality change. · 055d0c96
      Johnny Chen authored
      llvm-svn: 146429
      055d0c96
    • Johnny Chen's avatar
      Commenting out the two @expectedFailureClang decorators as the tests have been passing for a while · 1e4cd1fc
      Johnny Chen authored
      with the recent clang compilers.
      
      The latest I tried is: Apple clang version 3.1 (tags/Apple/clang-318.0.9) (based on LLVM 3.1svn)
      
      llvm-svn: 146427
      1e4cd1fc
    • Johnny Chen's avatar
      rdar://problem/10227672 · 64bab489
      Johnny Chen authored
      There were two problems associated with this radar:
      1. "settings show target.source-map" failed to show the source-map after, for example,
         "settings set target.source-map /Volumes/data/lldb/svn/trunk/test/source-manager /Volumes/data/lldb/svn/trunk/test/source-manager/hidden"
         has been executed to set the source-map.
      2. "list -n main" failed to display the source of the main() function after we properly set the source-map.
      
      The first was fixed by adding the missing functionality to TargetInstanceSettings::GetInstanceSettingsValue (Target.cpp)
      and updating the support files PathMappingList.h/.cpp; the second by modifying SourceManager.cpp to fix several places
      with incorrect logic.
      
      Also added a test case test_move_and_then_display_source() to TestSourceManager.py, which moves main.c to hidden/main.c,
      sets target.source-map to perform the directory mapping, and then verifies that "list -n main" can still show the main()
      function.
      
      llvm-svn: 146422
      64bab489
  11. Dec 10, 2011
Loading