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

Debugger (gdb) resolves wrong address for this

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 2.3.0
    • Qt Creator 2.1.0
    • Debugger
    • None

      Consider the example in QTCREATORBUG-4019.

      gdb prints out two distinct addresses for this - One with iname="local.this", and the other with name="this" (see attached debugger log).

      When the user right-clicks 'this' or any member, the debugger module in Qt Creator considers the local.this address as the base address for this, which is wrong (Screenshot attached). The address should be taken from the other entry (name="this").

        1. this-addr.log
          16 kB
        2. this-addr.png
          this-addr.png
          2 kB
        3. this-addr-2.log
          18 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hjk hjk
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes