Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-13858

Debugging with LLDB doesn't work on ArchLinux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 3.4.0-beta1
    • Qt Creator 3.3.0
    • Debugger
    • None
    • Linux 3.18.2-2-ARCH #1 SMP PREEMPT Fri Jan 9 07:37:51 CET 2015 x86_64 GNU/Linux
    • 4babc2785d76979f32fc9d3d0a262663b22dec41

    Description

      On ArchLinux, python executable is Python version 3. Qt Creators' LLDB debugger script lldbbridge.py is a Python2 script.

      So when launching LLDB debug session, Debugger Log shows:

      ATTEMPT SYNC
      
      Starting debugger "LldbEngine" for ABI "x86-linux-generic-elf-64bit"...
      Start parameters: 'omnireader_qt' mode: 1
      ABI: x86-linux-generic-elf-64bit
      
      ...
      
      STARTING LLDB: python -i /usr/share/qtcreator/debugger/lldbbridge.py /usr/bin/lldb
      
      eERROR: Lldb stderr: >>> 
      

      Running the last command in terminal gives:

      $ python -i /usr/share/qtcreator/debugger/lldbbridge.py /usr/bin/lldb
      Traceback (most recent call last):
        File "/usr/share/qtcreator/debugger/lldbbridge.py", line 60, in <module>
          if error.startswith('lldb: invalid option -- P'):
      TypeError: startswith first arg must be bytes or a tuple of bytes, not str
      >>> 
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            hweom Mikhail Balakhno
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes