Skip to content
  1. Feb 08, 2013
  2. Feb 06, 2013
  3. Feb 05, 2013
  4. Feb 04, 2013
    • Enrico Granata's avatar
      <rdar://problem/12953018> · 3b1b2dab
      Enrico Granata authored
      Synthetic children and summary for std::vector<bool> (for both libcxx and libstdcpp).
      std::vector<bool> is a special case and is custom-implemented to be a vector of bits, which means we failed to handle it with the standard std::vector<T> formatter.
      This checkin provides custom formatters that work correctly
      
      llvm-svn: 174333
      3b1b2dab
  5. Feb 01, 2013
    • Greg Clayton's avatar
      <rdar://problem/13092722> · 39f7ee86
      Greg Clayton authored
      Fix in loading mach files from memory when using DynamicLoaderMacOSXDYLD.
      
      Removed the uuid mismatch warning that could be spit out and any time during debugging and removed the test case that was looking for that. Currently the "add-dsym" or "target symbols add" command will report an error when the UUID's don't match.
      
      Be more careful when checking and resolving section + offset addresses to make sure none of the base addresses are invalid.
      
      llvm-svn: 174222
      39f7ee86
    • Sean Callanan's avatar
      Modified the expression parser's class wrapper to · fa4fab77
      Sean Callanan authored
      support reporting "this" as a templated class.  The
      expression parser wraps expressions in C++ methods
      as methods with the signature
      
      $__lldb_class::$__lldb_expr(...)
      
      and previously responded to clang's queries about
      $__lldb_class with the type of *this.  This didn't
      work if *this was a ClassTemplateSpecializationDecl
      because ClassTemplateSpecializationDecls can't be
      the result of simple name queries.
      
      Instead what we do now is respond that $__lldb_class
      is a typedef and that the target of the typedef is
      the (potentially templated) type of *this.  That is
      much more robust.
      
      Thanks to John McCall for key insights.
      
      <rdar://problem/10987183>
      
      llvm-svn: 174153
      fa4fab77
  6. Jan 29, 2013
    • Enrico Granata's avatar
      <rdar://problem/12890171> · 9a31ccba
      Enrico Granata authored
      Providing a compact display mode for "po" to use where the convenience variable name and the pointer value are both hidden.
      This is for convenience when dealing with ObjC instances where the description often gets it right and the debugger-provided information is not useful to most people.
      If you need either of these, "expr" will still show them.
      
      llvm-svn: 173748
      9a31ccba
    • Enrico Granata's avatar
      <rdar://problem/12978143> · 5548cb50
      Enrico Granata authored
      Data formatters now cache themselves.
      This commit provides a new formatter cache mechanism. Upon resolving a formatter (summary or synthetic), LLDB remembers the resolution for later faster retrieval.
      Also moved the data formatters subsystem from the core to its own group and folder for easier management, and done some code reorganization.
      The ObjC runtime v1 now returns a class name if asked for the dynamic type of an object. This is required for formatters caching to work with the v1 runtime.
      Lastly, this commit disposes of the old hack where ValueObjects had to remember whether they were queried for formatters with their static or dynamic type.
      Now the ValueObjectDynamicValue class works well enough that we can use its dynamic value setting for the same purpose.
      
      llvm-svn: 173728
      5548cb50
  7. Jan 25, 2013
  8. Jan 24, 2013
  9. Jan 23, 2013
    • Enrico Granata's avatar
      <rdar://problem/12711206> · f7b1a34e
      Enrico Granata authored
      Extending ValueObjectDynamicValue so that it stores a TypeAndOrName instead of a TypeSP.
      This change allows us to reflect the notion that a ValueObject can have a dynamic type for which we have no debug information.
      Previously, we would coalesce that to the static type of the object, potentially losing relevant information or even getting it wrong.
      This fix ensures we can correctly report the class name for Cocoa objects whose types are hidden classes that we know nothing about (e.g. __NSArrayI for immutable arrays).
      As a side effect, our --show-types argument to frame variable no longer needs to append custom dynamic type information.
      
      llvm-svn: 173216
      f7b1a34e
  10. Jan 22, 2013
  11. Jan 19, 2013
  12. Jan 18, 2013
  13. Jan 15, 2013
  14. Jan 12, 2013
    • Enrico Granata's avatar
      <rdar://problem/12239827> · e274088d
      Enrico Granata authored
      Making a summary for std::wstring as provided by libstdc++ along with a relevant test case
      
      llvm-svn: 172286
      e274088d
    • Enrico Granata's avatar
      <rdar://problem/12239827> · 3309d881
      Enrico Granata authored
      Providing a data formatter for libc++ std::wstring
      In the process, refactoring the std::string data formatter to be written in C++ so that commonalities between the two can be exploited
      Also, providing a new API on the ValueObject to navigate a hierarchy by index-path
      Lastly, an appropriate test case is included
      
      llvm-svn: 172282
      3309d881
  15. Jan 11, 2013
  16. Jan 10, 2013
    • Enrico Granata's avatar
      <rdar://problem/12725746> · f68df12f
      Enrico Granata authored
      Providing data formatters for char16_t* and char32_t* C++11-style Unicode strings
      Using this chance to refactor the UTF data reader used for data formatters for added generality
      Added a relevant test case
      
      llvm-svn: 172119
      f68df12f
    • Enrico Granata's avatar
      <rdar://problem/11146929> · b4e2e93c
      Enrico Granata authored
      Enabling support for the wchar_t type.
      Without the proper language option setup, clang's ASTContexts will be configured to have wchar_t == int
      This patch enables the correct options to make sure that we report wchar_t as itself
      Added a test case to make sure we do not regress 
      
      llvm-svn: 172038
      b4e2e93c
  17. Jan 09, 2013
    • Enrico Granata's avatar
      <rdar://problem/12028723> · b576bba2
      Enrico Granata authored
      Adding useful formatting options to the expression (expr) command.
      As a side effect of this change, the -d option now supports the same three-values enumeration that frame variables uses (run, don't run, none) instead of a boolean like it did previously
      
      These options do not apply to print, p or po because these are aliased to not take any options.
      In order to use them, use expression or expr.
      
      llvm-svn: 171993
      b576bba2
    • Jim Ingham's avatar
      Add an SBProcess API to get the current StopID, either considering or ignoring... · bf2956a2
      Jim Ingham authored
      Add an SBProcess API to get the current StopID, either considering or ignoring stops caused by expression
      evaluation.
      
      <rdar://problem/12968562>
      
      llvm-svn: 171914
      bf2956a2
  18. Jan 08, 2013
  19. Jan 07, 2013
  20. Jan 05, 2013
Loading