[lldb-dev] PATCH for REVIEW - Fix [Bug 15038] LLDB does not support printing wide-character variables on Linux

Thirumurthi, Ashok ashok.thirumurthi at intel.com
Wed Mar 27 14:52:16 PDT 2013

The root cause for Bug 15038 is a ptrace EIO that can occur because we don't know the size of a (UTF) string and so read a fixed number of characters for strings.  The attached fix accepts EIO in the case where data has been read and a null terminator of the correct size and alignment was found.

- Ashok

-----Original Message-----
From: lldb-dev-bounces at cs.uiuc.edu [mailto:lldb-dev-bounces at cs.uiuc.edu] On Behalf Of bugzilla-daemon at llvm.org
Sent: Tuesday, January 22, 2013 10:13 AM
To: lldb-dev at cs.uiuc.edu
Subject: [lldb-dev] [Bug 15038] New: LLDB does not support printing wide-character variables on Linux


             Bug #: 15038
           Summary: LLDB does not support printing wide-character
                    variables on Linux
           Product: lldb
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
        AssignedTo: lldb-dev at cs.uiuc.edu
        ReportedBy: daniel.malea at intel.com
    Classification: Unclassified

Printing a variable of wchar_t type does not behave as expected and results in garbage being printed on the screen.

To reproduce, remove the @expectedFailureLinux decorator from TestChar1632T.py and TestCxxWCharT.py and run:

python dotest.py --executable <path-to-lldb> lang/cpp/char1632_t lang/cpp/wchar_t

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: ------- You are the assignee for the bug.
lldb-dev mailing list
lldb-dev at cs.uiuc.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: read-strings.diff
Type: application/octet-stream
Size: 3683 bytes
Desc: read-strings.diff
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130327/724a4838/attachment.obj>

More information about the lldb-dev mailing list