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

Typedefed values don't have address

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.7.2, Qt Creator 4.8.0
    • Debugger
    • None
    • Windows, MinGW/GDB 8.1
    • 4cb4b7ba993575ce43e0786454625501012d5500 (qt-creator/qt-creator/4.8)

    Description

      typedef int Int;
      int main()
      {
          int good = 42;
          Int bad = 43;
          (void)good;
          (void)bad;
          return 0; // BREAK HERE
      }

      Right-clicking bad doesn't allow any memory-related actions like Data Breakpoint, Memory Editor etc.

      The log shows:

      >~"result={token=\"0\",data=[{iname=\"local.good\",name=\"good\",address=\"0x7fffffffe4cc\",numchild=\"0\",type=\"int\",value=\"42\",},{iname=\"local.bad\",name=\"bad\",numchild=\"0\",type=\"Int\",value=\"43\",},],typeinfo=[],partial=\"0\",counts={},timings=[]}\n"
      

      Notice that good has an address while bad doesn't.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes