Skip to content
  1. Jan 02, 2013
  2. Dec 21, 2012
  3. Dec 20, 2012
    • Sean Callanan's avatar
      This patch removes the SymbolFileSymtab support · 7be70e85
      Sean Callanan authored
      for reporting class types from Objective-C runtime
      class symbols.  Instead, LLDB now queries the 
      Objective-C runtime for class types.
      
      We have also added a (minimal) Objective-C runtime
      type vendor for Objective-C runtime version 1, to 
      prevent regressions when calling class methods in
      the V1 runtime.
      
      Other components of this fix include:
      
      - We search the Objective-C runtime in a few more
        places.
      
      - We enable enumeration of all members of
        Objective-C classes, which Clang does in certain
        circumstances.
      
      - SBTarget::FindFirstType and SBTarget::FindTypes
        now query the Objective-C runtime as needed.
      
      - I fixed several test cases.
      
      <rdar://problem/12885034>
      
      llvm-svn: 170601
      7be70e85
  4. Dec 18, 2012
  5. Dec 14, 2012
  6. Dec 11, 2012
    • Sean Callanan's avatar
      Fixed the IRInterpreter's handling of "this" and · 496970f6
      Sean Callanan authored
      "self" when those pointers are in registers.
      Previously in this case the IRInterpreter would
      handle them just as if the user had typed in
      "$rdi", which isn't safe because $rdi is passed
      in through the argument struct.
      
      Now we correctly break out all three cases (i.e.,
      normal variables in registers, $reg, and this/self),
      and handle them in a way that's a little bit easier
      to read and change.
      
      This results in more accurate printing of "this" and
      "self" pointers all around.  I have strengthened the
      optimized-code test case for Objective-C to ensure
      that we catch regressions in this area reliably in
      the future.
      
      <rdar://problem/12693963>
      
      llvm-svn: 169924
      496970f6
  7. Dec 07, 2012
    • Daniel Malea's avatar
      Fix a few more clang (3.2) warnings on Linux: · a85e6b6c
      Daniel Malea authored
      - remove unused members
      - add NO_PEDANTIC to selected Makefiles
      - fix return values (removed NULL as needed)
      - disable warning about four-char-constants
      - remove unneeded const from operator*() declaration
      - add missing lambda function return types
      - fix printf() with no format string
      - change sizeof to use a type name instead of variable name
      - fix Linux ProcessMonitor.cpp to be 32/64 bit friendly
      - disable warnings emitted by swig-generated C++ code
      
      Patch by Matt Kopec!
      
      llvm-svn: 169645
      a85e6b6c
    • Jim Ingham's avatar
      Now that we set ThreadPlanCallFunction to private in the constructor, it is... · 95afbf51
      Jim Ingham authored
      Now that we set ThreadPlanCallFunction to private in the constructor, it is confusing that we set it
      again in client code after creating the plans.  So remove those unnecessary calls.
      
      llvm-svn: 169625
      95afbf51
  8. Dec 06, 2012
  9. Dec 05, 2012
  10. Dec 01, 2012
  11. Nov 29, 2012
  12. Nov 28, 2012
  13. Nov 27, 2012
    • Greg Clayton's avatar
      <rdar://problem/12106825> · 3d51b9f9
      Greg Clayton authored
      Allow the expression parser to see more than just data symbols. We now accept any symbol that has an address. We take precautions to only accept symbols by their mangled or demangled names only if the demangled name was not synthesized. If the demangled name is synthesized, then we now mark symbols accordingly and only compare against the mangled original name. 
      
      llvm-svn: 168668
      3d51b9f9
  14. Nov 26, 2012
  15. Nov 16, 2012
  16. Nov 15, 2012
    • Sean Callanan's avatar
      In cases where the Objective-C ivar symbols are stripped out, · e0b23b51
      Sean Callanan authored
      expressions that refer to ivars will not work because Clang
      emits IR that refers to them to get the ivar offsets. 
      However, it is possible to search the runtime for these values.
      
      I have added support for reading the relevant tables to the
      Objective-C runtime, and extended ClangExpressionDeclMap to
      query that information if and only if it doesn't find the symbols
      in the binary.
      
      Also added a testcase.
      
      <rdar://problem/12628122>
      
      llvm-svn: 168018
      e0b23b51
  17. Nov 08, 2012
    • Enrico Granata's avatar
      <rdar://problem/12586350> · 1759848b
      Enrico Granata authored
      This commit does three things:
      (a) introduces a new notification model for adding/removing/changing modules to a ModuleList, and applies it to the Target's ModuleList, so that we make sure to always trigger the right set of actions
      whenever modules come and go in a target. Certain spots in the code still need to "manually" notify the Target for several reasons, so this is a work in progress
      (b) adds a new capability to the Platforms: locating a scripting resources associated to a module. A scripting resource is a Python file that can load commands, formatters, ... and any other action
      of interest corresponding to the loading of a module. At the moment, this is only implemented on Mac OS X and only for files inside .dSYM bundles - the next step is going to be letting
      the frameworks themselves hold their scripting resources. Implementors of platforms for other systems are free to implement "the right thing" for their own worlds
      (c) hooking up items (a) and (b) so that targets auto-load the scripting resources as the corresponding modules get loaded in a target. This has a few caveats at the moment:
       - the user needs to manually add the .py file to the dSYM (soon, it will also work in the framework itself)
       - if two modules with the same name show up during the lifetime of an LLDB session, the second one won't be able to load its scripting resource, but will otherwise work just fine
      
      llvm-svn: 167569
      1759848b
  18. Nov 02, 2012
    • Sean Callanan's avatar
      Fixed a problem where we mistook normal result · 7273e2d1
      Sean Callanan authored
      variables for guard variables because the current
      class or method named contained the letters "GV".
      
      llvm-svn: 167327
      7273e2d1
    • Sean Callanan's avatar
      Extra safeguards to ensure that we never query · 5540094c
      Sean Callanan authored
      the runtime if we have complete debug information
      for a class.
      
      Also made the Objective-C language runtime return
      NULL when asked for the complete debug information
      (i.e., information from DWARF, not information from
      the runtime) if that information isn't present.  It
      used to return a non-authoritative version, which
      made it hard for clients to determine whether
      complete debug information was available.
      
      <rdar://problem/12608895>
      
      llvm-svn: 167299
      5540094c
  19. Oct 31, 2012
  20. Oct 30, 2012
    • Greg Clayton's avatar
      Path from Ashok Thirumurthi: · 0665a0f0
      Greg Clayton authored
      The attached patch adds eValueTypeVector to lldb_private::Value.  The nested struct Vector is patterned after RegisterValue::m_data.buffer.  This change to Value allows ClangExpressionDeclMap::LookupDecl to return vector register data for consumption by InterpreterStackFrame::ResolveValue.  Note that ResolveValue was tweaked slightly to allocate enough memory for vector registers.
       
      An immediate result of this patch is that "expr $xmm0" generates the same results on Linux as on the Mac, which is good enough for TestRegisters.py.  In addition, the log of m_memory.PrintData(data_region.m_base, data_region.m_extent) shows that the register content has been resolved successfully.  On the other hand, the output is glaringly empty:
          runCmd: expr $xmm0
          output: (unsigned char __attribute__((ext_vector_type(16)))) $0 = {}
          Expecting sub string: vector_type
          Matched
      
      llvm-svn: 167033
      0665a0f0
    • Greg Clayton's avatar
      Patch from Matt Kopec: · 0734dfb2
      Greg Clayton authored
      This patch switches support on Linux from JIT to MCJIT.
      
      llvm-svn: 167026
      0734dfb2
  21. Oct 27, 2012
  22. Oct 24, 2012
  23. Oct 18, 2012
  24. Oct 16, 2012
  25. Oct 12, 2012
  26. Oct 11, 2012
  27. Oct 08, 2012
  28. Oct 05, 2012
    • Jason Molenda's avatar
      Ran the sources through the compiler with -Wshadow warnings · ccd41e55
      Jason Molenda authored
      enabled after we'd found a few bugs that were caused by shadowed
      local variables; the most important issue this turned up was
      a common mistake of trying to obtain a mutex lock for the scope
      of a code block by doing
      
              Mutex::Locker(m_map_mutex);
      
      This doesn't assign the lock object to a local variable; it is
      a temporary that has its dtor called immediately.  Instead,
      
              Mutex::Locker locker(m_map_mutex);
      
      does what is intended.  For some reason -Wshadow happened to
      highlight these as shadowed variables.
      
      I also fixed a few obivous and easy shadowed variable issues
      across the code base but there are a couple dozen more that
      should be fixed when someone has a free minute.
      <rdar://problem/12437585>
      
      llvm-svn: 165269
      ccd41e55
  29. Sep 25, 2012
    • Sean Callanan's avatar
      Removed some debugging cruft. · c2bd8c21
      Sean Callanan authored
      llvm-svn: 164572
      c2bd8c21
    • Sean Callanan's avatar
      Brought LLDB top-of-tree into sync with LLVM/Clang · 3d654b30
      Sean Callanan authored
      top-of-tree.  Removed all local patches and llvm.zip.
      
      The intent is that fron now on top-of-tree will
      always build against LLVM/Clang top-of-tree, and
      that problems building will be resolved as they
      occur.  Stable release branches of LLDB can be
      constructed as needed and linked to specific release
      branches of LLVM/Clang.
      
      llvm-svn: 164563
      3d654b30
  30. Sep 21, 2012
    • Sean Callanan's avatar
      Fixed a problem where persistent variables did · 2cb5e527
      Sean Callanan authored
      not correctly store the contents of Objective-C
      classes.  This was due to a combination of
      factors:
      
        1) Types were only being completed if we were
           looking inside them for specific ivars
           (using FindExternalVisibleDeclsByName). 
           We now look the complete type up at every
           FindExternalLexicalDecls.
      
        2) Even if the types were completed properly,
           ValueObjectConstResult overrode the type
           of every ValueObject using the complete type
           for its class from the debug information.
           Superclasses of complete classes are not
           guaranteed to be complete.  Although "frame
           variable" uses the debug information,
           the expression parser does now piece together
           complete types at every level (as described
           in Bullet 1), so I provided a way for the
           expression parser to prevent overriding.
      
        3) Type sizes were being miscomputed by
           ClangASTContext.  It ignored the ISA pointer
           and only counted fields.  We now correctly
           count the ISA in the size of an object.
      
      <rdar://problem/12315386>
      
      llvm-svn: 164333
      2cb5e527
Loading