This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. 0fc059972058a4afb22882a61143c7cc48eca883
- From: qiyao at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 17 Jun 2014 11:38:09 -0000
- Subject: gdb and binutils branch master updated. 0fc059972058a4afb22882a61143c7cc48eca883
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 0fc059972058a4afb22882a61143c7cc48eca883 (commit)
from 70795c525e5b8ca5e9fb8ffbaf33a5f281d53320 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0fc059972058a4afb22882a61143c7cc48eca883
commit 0fc059972058a4afb22882a61143c7cc48eca883
Author: Yao Qi <yao@codesourcery.com>
Date: Tue May 27 19:56:21 2014 +0800
Different outputs affected by hosts
We find the following fails in gdb test on mingw host.
FAIL: gdb.base/wchar.exp: print repeat
FAIL: gdb.base/wchar.exp: print repeat_p
FAIL: gdb.base/wchar.exp: print repeat (print null on)
FAIL: gdb.base/wchar.exp: print repeat (print elements 3)
FAIL: gdb.base/wchar.exp: print repeat_p (print elements 3)
print repeat^M
$7 = L"A", '¢' <repeats 21 times>, "B", '\000' <repeats 104 times>^M
(gdb) FAIL: gdb.base/wchar.exp: print repeat
the \242 is expected in the test but cent sign is displayed.
In valprint.c:print_wchar, wchar_printable is called to determine
whether a wchar is printable. wchar_printable calls iswprint but
the iswprint's return value depends on LC_CTYPE setting of locale [1, 2].
The output may vary with different locale settings and OS. IMO, '¢'
(cent sign) is a correct output on Windows.
[1] http://pubs.opengroup.org/onlinepubs/009604499/functions/iswprint.html
[2] http://msdn.microsoft.com/en-us/library/ewx8s4kw.aspx
This patch is set $cent to cent sign if the GDB is running on a
Windows host.
gdb/testsuite:
2014-06-17 Yao Qi <yao@codesourcery.com>
* gdb.base/wchar.exp: Set $cent to \u00A2 if "host-charset" is
CP1252.
-----------------------------------------------------------------------
Summary of changes:
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/gdb.base/wchar.exp | 14 ++++++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
hooks/post-receive
--
gdb and binutils