Skip to content
  1. Feb 07, 2013
  2. Feb 06, 2013
    • Greg Clayton's avatar
      Removed debug print line I left in. · 1f380ea2
      Greg Clayton authored
      llvm-svn: 174556
      1f380ea2
    • Greg Clayton's avatar
      <rdar://problem/13159777> · 5ce9c565
      Greg Clayton authored
      lldb was mmap'ing archive files once per .o file it loads, now it correctly shares the archive between modules.
      
      LLDB was also always mapping entire contents of universal mach-o files, now it maps just the slice that is required.
      
      Added a new logging channel for "lldb" called "mmap" to help track future regressions.
      
      Modified the ObjectFile and ObjectContainer plugin interfaces to take a data offset along with the file offset and size so we can implement the correct caching and efficient reading of parts of files without mmap'ing the entire file like we used to.
      
      The current implementation still keeps entire .a files mmaped (once) and entire slices from universal files mmaped to ensure that if a client builds their binaries during a debug session we don't lose our data and get corrupt object file info and debug info.
      
      llvm-svn: 174524
      5ce9c565
    • Daniel Malea's avatar
      Fix GCC 4.6 build by avoiding delegating ctors · 0b464d48
      Daniel Malea authored
      Patch by Abid Hafiz!
      
      llvm-svn: 174519
      0b464d48
    • Greg Clayton's avatar
      <rdar://problem/11109570> · 906ba471
      Greg Clayton authored
      The first part of the fix for having LLDB handle LTO debugging when the DWARF is in the .o files. This part separates the object file's modules into a separate cache map that maps unique C strings for the N_OSO path to the ModuleSP since one object file might be mentioned more than once in LTO binaries.
      
      llvm-svn: 174476
      906ba471
  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 02, 2013
  6. Feb 01, 2013
  7. Jan 31, 2013
  8. Jan 30, 2013
    • Jason Molenda's avatar
      Verified that the plugin.dynamic-loader.darwin-kernel.scan-type · a46db772
      Jason Molenda authored
      setting is working correctly now; remove the #if 0's around its
      use.
      
      llvm-svn: 173982
      a46db772
    • Dmitri Gribenko's avatar
      aa073de2
    • Dmitri Gribenko's avatar
      024aa853
    • Jason Molenda's avatar
      Fix one obvious thinko with the plugin.dynamic-loader.darwin-kernel.scan-type setting · 63969221
      Jason Molenda authored
      handling that was probably the source of the settings problem.  Need to verify that
      it's working correctly tomorrow though.
      
      llvm-svn: 173894
      63969221
    • Jason Molenda's avatar
      <rdar://problem/12491235> · 6ba6d3d1
      Jason Molenda authored
      Enhance lldb so it can search for a kernel in memory when attaching
      to a remote system.  Remove some of the code that was doing this
      from ProcessMachCore and ProcessGDBRemote and put it in
      DynamicLoaderDarwinKernel.
      
      I've added a new setting, plugin.dynamic-loader.darwin-kernel.scan-type
      which can be set to
      
       none   - for environments where reading random memory can cause a
                device crash 
       basic  - look at one fixed location in memory for a kernel load address, 
                plus the contents of that address
       fast-scan - the default, tries "basic" and then looks for the kernel's
                mach header near the current pc value when lldb connects
       exhaustive-scan - on 32-bit targets, step through the entire range where
                the kernel can be loaded, looking for the kernel binary
      
      I don't have the setting set up correctly right now, I'm getting back unexpected
      values from the Property system, but I'll figure that out tomorrow and fix.
      Besides that, all of the different communication methods / types of kernels 
      appear to be working correctly with these changes.
      
      llvm-svn: 173891
      6ba6d3d1
    • Daniel Malea's avatar
      Fix build problems with libstdc++ 4.6/4.7 · 30b95a36
      Daniel Malea authored
      - remove nullptr from initialization of shared_ptrs
      
      llvm-svn: 173870
      30b95a36
    • Greg Clayton's avatar
      Remove debug code and commented out code that was left in. · 325e8694
      Greg Clayton authored
      llvm-svn: 173865
      325e8694
    • Filipe Cabecinhas's avatar
    • Greg Clayton's avatar
      <rdar://problem/9141269> · 1b3815cb
      Greg Clayton authored
      Cleaned up the objective C name parsing code to use a class.
      
      Now breakpoints that are set by name that are objective C methods without the leading '+' or '-' will resolve. We do this by expanding all the objective C names for a given string. For example:
      
      (lldb) b [MyString cStringUsingEncoding:]
      
      Will set a breakpoint with multiple possible names: 
      -[MyString cStringUsingEncoding:]
      +[MyString cStringUsingEncoding:]
      
      Also if you have a category, it will strip the category and set a breakpoint in all variants:
      
      (lldb) [MyString(my_category) cStringUsingEncoding:]
      
      Will resolve to the following names:
      
      -[MyString(my_category) cStringUsingEncoding:]
      +[MyString(my_category) cStringUsingEncoding:]
      -[MyString cStringUsingEncoding:]
      +[MyString cStringUsingEncoding:]
      
      Likewise when we have:
      
      (lldb) b -[MyString(my_category) cStringUsingEncoding:]
      
      It will resolve to two names:
      -[MyString(my_category) cStringUsingEncoding:]
      -[MyString cStringUsingEncoding:]
      
      llvm-svn: 173858
      1b3815cb
  9. Jan 29, 2013
    • Filipe Cabecinhas's avatar
      Actually build DataFormatters dir. Fix for the r173732 fix. · 276a08b5
      Filipe Cabecinhas authored
      llvm-svn: 173840
      276a08b5
    • Greg Clayton's avatar
      <rdar://problem/13107904> · b25406cd
      Greg Clayton authored
      wchar_t causes problem with certain compilers. Removing it for now.
      
      llvm-svn: 173823
      b25406cd
    • Enrico Granata's avatar
      Since an address (0x12346) is an expression, be brief. · 59de94bd
      Enrico Granata authored
      llvm-svn: 173757
      59de94bd
    • Enrico Granata's avatar
      <rdar://problem/12552374> · b84a9dbf
      Enrico Granata authored
      Replacing the address argument type with address-expression in cases where StringToAddress() is used, and hence an expression can be passed where previously only a numeric address was allowed
      This makes the documentation more clear and helps users discover that they can truly pass in an expression in these situations.
      
      llvm-svn: 173753
      b84a9dbf
    • 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
    • Greg Clayton's avatar
      <rdar://problem/12524607> · 3c94737f
      Greg Clayton authored
      Flush the process when symbols are loaded/unloaded manually. This was going on in:
      - "target modules load" command
      - SBTarget::SetSectionLoadAddress(...)
      - SBTarget::ClearSectionLoadAddress(...)
      - SBTarget::SetModuleLoadAddress(...)
      - SBTarget::ClearModuleLoadAddress(...)
      
      llvm-svn: 173745
      3c94737f
Loading