This is the mail archive of the gdb-patches@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: [PATCH] PR exp/9103


The patch works correctly because the function inside the modified
condition (val_print_string) scans the string using the size of each
character of the string. This size is passed to the function using the
parameter TYPE_LENGTH (elttype). Char * strings are printed by this
function, the only difference is that wchar_t* strings didn't get
inside the condition, and now they do.

André Oliveira Loureiro do Baixo

On Wed, Mar 11, 2009 at 12:37 PM, Daniel Jacobowitz <drow@false.org> wrote:
> On Wed, Mar 11, 2009 at 12:25:26PM -0300, Andre Oliveira Loureiro do Baixo wrote:
>> There is a bug filled in about GDB not printing (wchar_t *) strings in:
>>
>> http://sourceware.org/bugzilla/show_bug.cgi?id=9103
>>
>> This patch solves this bug.
>
> You need to coordinate with Tom, who is working on a bigger solution
> to this. ?I don't see how your patch can work correctly since the rest
> of GDB doesn't know how to convert wide characters into displayable
> text.
>
> --
> Daniel Jacobowitz
> CodeSourcery
>


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