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: [RFA/commit] Fix printing of wide characters (Ada and C)


>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel>    (b) The second problem was in c-valprint, where we were down-casting
Joel>        the integer value of the character to type `unsigned char',
Joel>        causing use to lose all but the lowest byte.

Ouch.  I am really surprised we missed this for so long.

Joel>         * ada-valprint. (ada_printchar): Use the correct type length
Joel>         in call to ada_emit_char.
Joel>         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.

Joel> Tested on x86_64-linux.  Ok to commit?

It looks good to me.  I think it should go on the 7.2 branch as well.

Tom


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