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: printing wchar_t*


On 4/13/06, Vladimir Prus <ghost@cs.msu.su> wrote:
> I have a user-defined command that can produce the output I want, but is
> defining a custom command the right approach?

Well, you'd like wide strings to be printed properly when they appear
in structures, as arguments to functions, and so on, right?  So a
user-defined command isn't ideal.

The best approach would be to extend charset.[ch] to handle wide
character sets as well, and then add code to the language-specific
printing routines to use the charset functions.  (This is fortunately
much simpler than adding support for multibyte characters.)


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