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

Use two's complement to display register values in debugging mode.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 3.5.0-rc1
    • Qt Creator 2.8.1
    • Debugger
    • None
    • Tested on Linux. Not sure about windows.

    • d12bbe2178ac530cf63188e9e189928b2fa964c7

    Description

      How to reproduce:

      • create program using C (or NASM)
      • move negative value (for example -5) to one of the registers (for example EAX)
      • debug your program and display "Registers" tab, and navigate to your "EAX" assignment

      What is displayed?
      According to "Registers" tab, EAX contains value "4294967291" (base 10), which is not correct.

      What should be displayed?
      "Register" tab should display "-5" (base 10) as the value of EAX.

      Background.
      I believe that larger number of programmers is interested in real value (two's complement) stored in the registers, not RAW value. The best solution would be to add ONE COLUMN to "Registers" tab, something like "Real value".

      PS: Registers tab does NOT remember its settings. If I debug the program and switch to decimal-base view of the registers values, stop debuggin and start it again, then I would expect that I will see decimal-base view of the registers values again. Instead I see hexadecimal-base values.

      Attachments

        Activity

          People

            hjk hjk
            skunkos Martin Rotter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: