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

Debugger only shows the first character of wchar_t* string

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.0.0-rc1
    • Qt Creator 4.0.0-rc1
    • Debugger
    • None
    • Windows 7 64 bit
      MinGW 4.9
      gdb 7.8
    • e56e6b0ca9c0889aa7a7d4200652153dde02e75c

    Description

      1. Open "simple" project from tests\manual\debugger\simple\simple.pro in Creator's repository.
      2. Place a breakpoint at BREAK_HERE in testTypeFormats() (line 5370).
      3. Let the debugger run into this breakpoint.
        In Locals and Expressions view, you can see the values. For the wchar_t * string only the value of the first element is being shown whereas for the char * string, all elements are being shown:
        s "aöa" char *
        w 0x458954 wchar_t *

        (They are not shown correctly, but that's QTCREATORBUG-16029.)
        Expanding "w" still only shows the first element. To see more, you need to set the format to "Array of 10 items".

      Strings should be displayed correctly and consistently by default.

      Attachments

        1. left.log
          4 kB
        2. right.log
          48 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes