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

Qt version detected incorrectly on debugging.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: