Skip to content
  1. Jul 22, 2015
    • Pavel Labath's avatar
      Make stream::operator<< take "const" void * · c2f33f67
      Pavel Labath authored
      Summary:
      This enables us to avoid casts to "void *" in some cases and avoids a couple of "casts off const
      qualifiers" warnings.
      
      Reviewers: clayborg
      
      Subscribers: lldb-commits
      
      Differential Revision: http://reviews.llvm.org/D11388
      
      llvm-svn: 242874
      c2f33f67
    • Bruce Mitchener's avatar
      Fix typos. · e171da5c
      Bruce Mitchener authored
      Summary: Fix a bunch of typos.
      
      Reviewers: clayborg
      
      Subscribers: lldb-commits
      
      Differential Revision: http://reviews.llvm.org/D11386
      
      llvm-svn: 242856
      e171da5c
    • Dawn Perchik's avatar
      Add support for specifying a language to use when parsing breakpoints. · 23b1decb
      Dawn Perchik authored
      Target and breakpoints options were added:
          breakpoint set --language lang --name func
          settings set target.language pascal
      These specify the Language to use when interpreting the breakpoint's
      expression (note: currently only implemented for breakpoints on
      identifiers).  If the breakpoint language is not set, the target.language
      setting is used.
      This support is required by Pascal, for example, to set breakpoint at 'ns.foo'
      for function 'foo' in namespace 'ns'.
      Tests on the language were also added to Module::PrepareForFunctionNameLookup
      for efficiency.
      
      Reviewed by: clayborg
      Subscribers: jingham, lldb-commits
      Differential Revision: http://reviews.llvm.org/D11119
      
      llvm-svn: 242844
      23b1decb
  2. Jul 16, 2015
    • Pavel Labath's avatar
      Fix compiler warning in ArchSpec · 07695bd3
      Pavel Labath authored
      llvm-svn: 242397
      07695bd3
    • Jaydeep Patil's avatar
      [LLDB][MIPS] Detect MIPS application specific extensions like micromips · 501a7819
      Jaydeep Patil authored
          SUMMARY:
          The patch detects MIPS application specific extensions (ASE) like micromips by reading 
          ELF header.e_flags and SHT_MIPS_ABIFLAGS section. MIPS triple does not contain ASE 
          information like micromips, mips16, DSP, MSA etc. These can be read from header.e_flags 
          or SHT_MIPS_ABIFLAGS section.
          
          Reviewers: clayborg
          Subscribers: mohit.bhakkad, sagar, lldb-commits
          Differential Revision: http://reviews.llvm.org/D11133
      
      llvm-svn: 242381
      501a7819
    • Siva Chandra's avatar
      Add a class ValueObjectConstResultCast. · f8877efc
      Siva Chandra authored
      Summary:
      Other changes around the main change include:
      
      1. Add a method Cast to ValueObjectConstResult, ValueObjectConstResultImpl
      and ValueObjectConstResultChild.
      
      2. Add an argument |live_address| of type lldb::addr_t to the constructor
      of ValueObjectConstResultChild. This is passed on to the backing
      ValueObjectConstResultImpl object constructor so that the address of the
      child value can be calculated properly.
      
      Reviewers: granata.enrico, clayborg
      
      Subscribers: lldb-commits
      
      Differential Revision: http://reviews.llvm.org/D11203
      
      llvm-svn: 242374
      f8877efc
  3. Jul 13, 2015
    • Tamas Berghammer's avatar
      Remove hack about the size of long doubles from DataExtractor · 5f0bc1a8
      Tamas Berghammer authored
      The size of a long double was hardcoded in DataExtractor for x86 and
      x86_64 architectures. This CL removes the hard coded values and use the
      actual size based on the floating point semantics specified.
      
      Differential revision: http://reviews.llvm.org/D8417
      
      llvm-svn: 242019
      5f0bc1a8
    • Sagar Thakur's avatar
      [LLDB][MIPS] Add mips cores in cores_match () in ArchSpec · 6bee961a
      Sagar Thakur authored
          This patch:
              - Allows mips32 cores to match with any mips32/mips64 cores.
              - Allows mips32r2 cores to match with core only up-to mips32r2/mips64r2.
              - Allows mips32r3 cores to match with core only up-to mips32r3/mips64r3.
              - Allows mips32r5 cores to match with core only up-to mips32r3/mips64r5.
              - Allows mips32r6 core to match with only mips32r6/mips64r6 or mips32/mips64.
      
      Reviewers: emaste, jaydeep, clayborg
      Subscribers: mohit.bhakkad, nitesh.jain, bhushan, lldb-commits
      Differential Revision: http://reviews.llvm.org/D10921
      
      llvm-svn: 242016
      6bee961a
  4. Jul 09, 2015
  5. Jul 07, 2015
  6. Jul 06, 2015
    • Enrico Granata's avatar
      Add a GetDisplayName() API to SBFrame, SBFunction and SBSymbol · c1f705c2
      Enrico Granata authored
      This API is currently a no-op (in the sense that it has the same behavior as the already existing GetName()), but is meant long-term to provide a best-for-visualization version of the name of a function
      
      It is still not hooked up to the command line 'bt' command, nor to the 'gui' mode, but I do have ideas on how to make that work going forward
      
      rdar://21203242
      
      llvm-svn: 241482
      c1f705c2
  7. Jul 02, 2015
  8. Jun 30, 2015
    • Tamas Berghammer's avatar
      Fix [vdso] handling on Android (x86 and aarch64) · f2561846
      Tamas Berghammer authored
      * Add in-memory object file handling to the core dynamic loader
      * Fix in memory object file handling in ObjectFileELF (previously
        only part of the file was loaded before parsing)
      * Fix load address setting in ObjectFileELF for 32-bit targets
        when the load bias is negative
      * Change hack in DYLDRendezvous.cpp to be more specific and not to
        interfere with object files with fixed load address
      
      Differential revision: http://reviews.llvm.org/D10800
      
      llvm-svn: 241057
      f2561846
  9. Jun 26, 2015
  10. Jun 25, 2015
    • Greg Clayton's avatar
      Resubmitting 240466 after fixing the linux test suite failures. · 358cf1ea
      Greg Clayton authored
      A few extras were fixed
      
      - Symbol::GetAddress() now returns an Address object, not a reference. There were places where people were accessing the address of a symbol when the symbol's value wasn't an address symbol. On MacOSX, undefined symbols have a value zero and some places where using the symbol's address and getting an absolute address of zero (since an Address object with no section and an m_offset whose value isn't LLDB_INVALID_ADDRESS is considered an absolute address). So fixing this required some changes to make sure people were getting what they expected. 
      - Since some places want to access the address as a reference, I added a few new functions to symbol:
          Address &Symbol::GetAddressRef();
          const Address &Symbol::GetAddressRef() const;
      
      Linux test suite passes just fine now.
      
      <rdar://problem/21494354>
      
      llvm-svn: 240702
      358cf1ea
    • Dawn Perchik's avatar
      Add const qualifier to Mangled::GuessLanguage · 1f93e867
      Dawn Perchik authored
      llvm-svn: 240676
      1f93e867
    • Dawn Perchik's avatar
      Rename Mangled::GetLanguage to Mangled::GuessLanguage · 6c506bda
      Dawn Perchik authored
      The language can not be definitively determined from the mangling, so
      this new name helps clarify that fact.  This addresses the concerns raised
      in http://reviews.llvm.org/rL226962.
      Reviewed by: clayborg
      Subscribers: lldb-commits
      Differential Revision: http://reviews.llvm.org/D10723
      
      llvm-svn: 240662
      6c506bda
  11. Jun 23, 2015
    • Dawn Perchik's avatar
      Add support for displaying the language in the frame-format string. · dc975670
      Dawn Perchik authored
      Enable ${language} to be specified in the frame-format string to see
      the current frame's compile unit language in "frame info".
      
      Test Plan:
      debug a C++ program, run to main, and run the lldb commands:
          settings set frame-format "frame lang=${language}\n"
          frame info
      you should see:
          frame lang=c++
      test case added in:
          ./dotest.py --executable lldb -f SettingsCommandTestCase.test_set_frame_format
      Reviewers: clayborg
      Subscribers: lldb-commits
      Differential Revision: http://reviews.llvm.org/D10561
      
      llvm-svn: 240440
      dc975670
    • Chaoren Lin's avatar
      Revert "Reduced packet counts to the remote GDB server where possible." · 7a306080
      Chaoren Lin authored
      This reverts commit 0cc0745ea9c68d7fdcadc9904cee3f13c96dae60.
      
      Due to breakage on Linux build bot:
      
      http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-cmake/builds/3436
      
      llvm-svn: 240371
      7a306080
    • Greg Clayton's avatar
      Reduced packet counts to the remote GDB server where possible. · ffb2d44a
      Greg Clayton authored
      We have been working on reducing the packet count that is sent between LLDB and the debugserver on MacOSX and iOS. Our approach to this was to reduce the packets required when debugging multiple threads. We currently make one qThreadStopInfoXXXX call (where XXXX is the thread ID in hex) per thread except the thread that stopped with a stop reply packet. In order to implement multiple thread infos in a single reply, we need to use structured data, which means JSON. The new jThreadsInfo packet will attempt to retrieve all thread infos in a single packet. The data is very similar to the stop reply packets, but packaged in JSON and uses JSON arrays where applicable. The JSON output looks like:
      
      
      [
        { "tid":1580681,
          "metype":6,
          "medata":[2,0],
          "reason":"exception",
          "qaddr":140735118423168,
          "registers": {
            "0":"8000000000000000",
            "1":"0000000000000000",
            "2":"20fabf5fff7f0000",
            "3":"e8f8bf5fff7f0000",
            "4":"0100000000000000",
            "5":"d8f8bf5fff7f0000",
            "6":"b0f8bf5fff7f0000",
            "7":"20f4bf5fff7f0000",
            "8":"8000000000000000",
            "9":"61a8db78a61500db",
            "10":"3200000000000000",
            "11":"4602000000000000",
            "12":"0000000000000000",
            "13":"0000000000000000",
            "14":"0000000000000000",
            "15":"0000000000000000",
            "16":"960b000001000000",
            "17":"0202000000000000",
            "18":"2b00000000000000",
            "19":"0000000000000000",
            "20":"0000000000000000"},
          "memory":[
            {"address":140734799804592,"bytes":"c8f8bf5fff7f0000c9a59e8cff7f0000"},
            {"address":140734799804616,"bytes":"00000000000000000100000000000000"}
          ]
        }
      ]
      
      It contains an array of dicitionaries with all of the key value pairs that are normally in the stop reply packet. Including the expedited registers. Notice that is also contains expedited memory in the "memory" key. Any values in this memory will get included in a new L1 cache in lldb_private::Process where if a memory read request is made and that memory request fits into one of the L1 memory cache blocks, it will use that memory data. If a memory request fails in the L1 cache, it will fall back to the L2 cache which is the same block sized caching we were using before these changes. This allows a process to expedite memory that you are likely to use and it reduces packet count. On MacOSX with debugserver, we expedite the frame pointer backchain for a thread (up to 256 entries) by reading 2 pointers worth of bytes at the frame pointer (for the previous FP and PC), and follow the backchain. Most backtraces on MacOSX and iOS now don't require us to read any memory!
      
      We will try these packets out and if successful, we should port these to lldb-server in the near future. 
      
      <rdar://problem/21494354>
      
      llvm-svn: 240354
      ffb2d44a
  12. Jun 19, 2015
  13. Jun 18, 2015
  14. Jun 09, 2015
  15. Jun 05, 2015
    • Ed Maste's avatar
      Improve OSType initialization in elf object file's arch_spec · f6a1312f
      Ed Maste authored
      Setting the OSType in the ArchSpec triple is needed to correctly setup
      up the register context plugin. ArchSpec::SetArchitecture, for Mach-O
      only, sets the OSType. For ELF it was left to the ObjectFileELF to fill
      in the missing OSType.
      
      This change moves the ObjectFileELF logic into ArchSpec.
      
      A new optional 'os' parameter has been added to SetArchitecture.
      For ELF, this value is the from the ELF header.e_ident[EI_OSABI].
      The default value is 0 or ELFOSABI_NONE.
      
      The real work of determining the OSType was done by the ObjectFileELF
      helper function GetOsFromOSABI. This logic has been moved
      SetArchitecture.
      
      GetOsFromOSABI has been commented as being deprectated.  It is left in
      to support asserts.
      
      For ELF the vendor value returned from SetArchitecture should be
      UnknownVendor.  An unneeded resetting in ObjectFileELF has been removed
      and replaced with an assert.
      
      This fixes a problem reading a core file on FreeBSD/ARM because the spec
      triple was arm-unknown-unknown.
      
      Patch by Tom Rix.
      
      Differential Revision:     http://reviews.llvm.org/D9292
      
      llvm-svn: 239148
      f6a1312f
  16. Jun 04, 2015
  17. Jun 03, 2015
  18. Jun 01, 2015
  19. May 30, 2015
  20. May 29, 2015
    • Zachary Turner's avatar
      Don't #include "lldb-python.h" from anywhere. · 1124045a
      Zachary Turner authored
      Since interaction with the python interpreter is moving towards
      being more isolated, we won't be able to include this header from
      normal files anymore, all includes of it should be localized to
      the python library which will live under source/bindings/API/Python
      after a future patch.
      
      None of the files that were including this header actually depended
      on it anyway, so it was just a dead include in every single instance.
      
      llvm-svn: 238581
      1124045a
  21. May 28, 2015
Loading