[PATCH] PR exp/9103

Andre Oliveira Loureiro do Baixo andreolb@gmail.com
Wed Mar 11 17:09:00 GMT 2009


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
>



More information about the Gdb-patches mailing list