This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Display content of unicode std::wstring objects


On Fri, Aug 15, 2008 at 6:12 AM, Fredrik Orderud
<fredrik.orderud@idi.ntnu.no> wrote:

> Is there any in-build support for displaying the content of C++ STL unicode
> text-strings in gdb?

No, but Python scripting work (happening right now) is supposed to address this.

In the mean time, you may want to try this patch:
http://sourceware.org/ml/gdb-patches/2008-08/msg00167.html

It claims to allow this:

(gdb) p z
(std::wstring) L"This is a wide string."


Cheers,
-- 
Paul Pluzhnikov


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]