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

Qt version detected incorrectly on debugging.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 4.1.0-beta1
    • Qt Creator 3.5.1, Qt Creator 4.0.0
    • Debugger
    • None
    • Ubuntu 12.04.5 LTS x86_64
      Qt 4.8.1, Qt 4.8.5, Qt 5.1.0, Qt 5.5.1
      gdb 7.4 & 7.8
    • b198d482cf949c7b579ba62c1601d896b9dc6078

      This bug is the reason for QTCREATORBUG-14449.

      qtVersion() in gdbbridge.py always return self.fallbackQtVersion (0x50200).

      qtVersion() code:
      qtversion = int(gdb.parse_and_eval("((void**)&qtHookData)[2]")))
      fail with exception "Cannot convert value to int.".

      qtNamespace() return garbage ns on Qt 4.x.

      Patch attached.

        1. gdbbridge.py.diff
          1.0 kB
          Evgeniy Isaev
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hjk hjk
            isa Evgeniy Isaev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes