Skip to content
  1. Dec 01, 2012
  2. Nov 29, 2012
  3. Nov 28, 2012
  4. 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
  5. Nov 26, 2012
  6. Nov 16, 2012
  7. 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
  8. 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
  9. 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
  10. Oct 31, 2012
  11. 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
  12. Oct 27, 2012
  13. Oct 24, 2012
  14. Oct 18, 2012
  15. Oct 16, 2012
  16. Oct 12, 2012
  17. Oct 11, 2012
  18. Oct 08, 2012
  19. 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
  20. 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
  21. 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
    • Greg Clayton's avatar
      bb011f73
  22. Sep 18, 2012
  23. Sep 14, 2012
  24. Sep 11, 2012
    • Sean Callanan's avatar
      This patch is part of ongoing work to extract type · bc47dfcb
      Sean Callanan authored
      information from the Objective-C runtime.
      
      This patch takes the old AppleObjCSymbolVendor and
      replaces it with an AppleObjCTypeVendor, which is
      much more lightweight.  Specifically, the SymbolVendor
      needs to pretend that there is a backing symbol file
      for the Types it vends, whereas a TypeVendor only
      vends bare ClangASTTypes.  These ClangASTTypes only
      need to exist in an ASTContext.
      
      The ClangASTSource now falls back to the runtime's
      TypeVendor (if one exists) if the debug information
      doesn't find a complete type for a particular
      Objective-C interface.  The runtime's TypeVendor
      maintains an ASTContext full of types it knows about,
      and re-uses the ISA-based type query information used
      by the ValueObjects.
      
      Currently, the runtime's TypeVendor doesn't provide
      useful answers because we haven't yet implemented a
      way to iterate across all ISAs contained in the target
      process's runtime.  That's the next step.
      
      llvm-svn: 163651
      bc47dfcb
    • Filipe Cabecinhas's avatar
      Some more typing-related fixes. · d0b87d81
      Filipe Cabecinhas authored
      llvm-svn: 163641
      d0b87d81
  25. Sep 06, 2012
  26. Aug 29, 2012
    • Greg Clayton's avatar
      <rdar://problem/11757916> · 1f746071
      Greg Clayton authored
      Make breakpoint setting by file and line much more efficient by only looking for inlined breakpoint locations if we are setting a breakpoint in anything but a source implementation file. Implementing this complex for a many reasons. Turns out that parsing compile units lazily had some issues with respect to how we need to do things with DWARF in .o files. So the fixes in the checkin for this makes these changes:
      - Add a new setting called "target.inline-breakpoint-strategy" which can be set to "never", "always", or "headers". "never" will never try and set any inlined breakpoints (fastest). "always" always looks for inlined breakpoint locations (slowest, but most accurate). "headers", which is the default setting, will only look for inlined breakpoint locations if the breakpoint is set in what are consudered to be header files, which is realy defined as "not in an implementation source file". 
      - modify the breakpoint setting by file and line to check the current "target.inline-breakpoint-strategy" setting and act accordingly
      - Modify compile units to be able to get their language and other info lazily. This allows us to create compile units from the debug map and not have to fill all of the details in, and then lazily discover this information as we go on debuggging. This is needed to avoid parsing all .o files when setting breakpoints in implementation only files (no inlines). Otherwise we would need to parse the .o file, the object file (mach-o in our case) and the symbol file (DWARF in the object file) just to see what the compile unit was.
      - modify the "SymbolFileDWARFDebugMap" to subclass lldb_private::Module so that the virtual "GetObjectFile()" and "GetSymbolVendor()" functions can be intercepted when the .o file contenst are later lazilly needed. Prior to this fix, when we first instantiated the "SymbolFileDWARFDebugMap" class, we would also make modules, object files and symbol files for every .o file in the debug map because we needed to fix up the sections in the .o files with information that is in the executable debug map. Now we lazily do this in the DebugMapModule::GetObjectFile()
      
      Cleaned up header includes a bit as well.
      
      llvm-svn: 162860
      1f746071
  27. Aug 18, 2012
  28. Aug 16, 2012
  29. Aug 11, 2012
    • Greg Clayton's avatar
      <rdar://problem/11791234> · 7f4c7430
      Greg Clayton authored
      Remember to copy the address byte size and the byte order when copying data into a DWARF location object, or things will go wrong.
      
      llvm-svn: 161721
      7f4c7430
Loading