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

Register values are not displaying properly on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.14.0-rc1
    • Qt Creator 4.13.3
    • Debugger
    • None
    • macOS
    • e556463dc7918f1c2a345ccc83296f82c226a2ac (qt-creator/qt-creator/4.14)

    Description

      The register values are not displaying properly on macOS 10.15.7, using Qt Creator 4.13.3. I don't encounter this same issue on Linux, using Qt Creator 4.11.0.

      For example, the value of 0x1389 in register rax displays as 8913000000000000, as opposed to 0000000000001389. It appears that the alignment is wrong and also that the order of the digits is wrong.

      I also see that when the code is stopped at a breakpoint at address 0x100003f66 (as shown in the breakpoints view), the program counter register rip shows 663f000001000000, as opposed to 0000000100003f66 (with the same alignment and digit ordering issue reported above for rax).

      Here's the code I used. This is a simplified example.

      #include <stdio.h>
      
      int main()
      {
          asm("movq $0x1389, %rax");
          printf("Hello World!\n");
          return 0;
      }
      

      Attached is a screenshot, where I've added annotations to highlight the mismatches between the displayed register values and what they seemingly should be.

       

       

       

      Attachments

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

        Activity

          People

            hjk hjk
            dstein Daniel Steinberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes