Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: Problem on cygwin with new wchar_t printing support via iconv()
@ 2009-03-25  8:56 Roland Schwingel
  2009-03-25 15:13 ` Pedro Alves
  2009-03-25 19:14 ` Tom Tromey
  0 siblings, 2 replies; 7+ messages in thread
From: Roland Schwingel @ 2009-03-25  8:56 UTC (permalink / raw)
  To: tromey; +Cc: gdb

Hi Tom,

Thanks for your reply...

Tom Tromey <tromey@redhat.com> wrote on 24.03.2009 17:44:20:

 > >>>>> "Roland" == Roland Schwingel <roland.schwingel@onevision.de> 
writes:
 >
 > Roland> I simply freezes when I try to step into a function having a
 > Roland> wchar_t * as parameter.  I have buildt gdb both using the
 > Roland> cygwin supplied libiconv and an own libiconv intree with gdb
 > Roland> sources.
 >
 > What version of libiconv are you using?
My cygwin 1.5.25 installation comes with libiconv 1.11. For my gdb
intree tests I used libiconv 1.12.

 > If you have a small test case, I will try to reproduce it with a
 > libiconv-based build here.  I suspect, though, that it is
 > Windows-specific.
 >
 > If you have dejagnu installed, you could try:
 >
 >     cd build/gdb
 >     make check RUNTESTFLAGS=charset.exp
 >
 > This works for me with a libiconv-based build (on x86 Fedora 9).

This test was done with the intree libiconv 1.12:

make[1]: Entering directory 
`/vol/d/compile/gdb-6.8.50-cvs-ov_obj/gdb/testsuite'
Nothing to be done for all...
Making a new config file...
rootme=`pwd`; export rootme; \
        srcdir=../../../gdb-6.8.50-cvs-ov/gdb/testsuite ; export srcdir ; \
        EXPECT=`if [ -f ${rootme}/../../expect/expect ] ; then echo 
${rootme}/../../expect/expect ; else echo expect ; fi` ; export EXPECT ; \
        EXEEXT=.exe ; export EXEEXT ; \
        
LD_LIBRARY_PATH=$rootme/../../expect:$rootme/../../libstdc++:$rootme/../../tk/unix:$rootme/../../tcl/unix:$rootme/../../bfd:$rootme/../../opcodes:$LD_LIBRARY_PATH; 
\
        export LD_LIBRARY_PATH; \
        if [ -f ${rootme}/../../expect/expect ] ; then  \
          TCL_LIBRARY=${srcdir}/../../tcl/library ; \
          export TCL_LIBRARY ; fi ; \
        runtest charset.exp
WARNING: Couldn't find the global config file.
Test Run By roland on Wed Mar 25 09:36:08 2009
Native configuration is i686-pc-cygwin

                === gdb tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file 
for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for 
target.
Using ../../../gdb-6.8.50-cvs-ov/gdb/testsuite/config/unix.exp as 
tool-and-target-specific interface file.
Running ../../../gdb-6.8.50-cvs-ov/gdb/testsuite/gdb.base/charset.exp ...
FAIL: gdb.base/charset.exp: print string in ISO-8859-1
FAIL: gdb.base/charset.exp: print string in EBCDIC-US
FAIL: gdb.base/charset.exp: check value of parsed character literal in 
EBCDIC-US
FAIL: gdb.base/charset.exp: check value of parsed string literal in 
EBCDIC-US
FAIL: gdb.base/charset.exp: try printing '\a' in EBCDIC-US
FAIL: gdb.base/charset.exp: check value of '\a' in EBCDIC-US
FAIL: gdb.base/charset.exp: check value of "\a" in EBCDIC-US
FAIL: gdb.base/charset.exp: try printing '\b' in EBCDIC-US
FAIL: gdb.base/charset.exp: check value of '\b' in EBCDIC-US
FAIL: gdb.base/charset.exp: check value of "\b" in EBCDIC-US
FAIL: gdb.base/charset.exp: try printing '\n' in EBCDIC-US
FAIL: gdb.base/charset.exp: check value of '\n' in EBCDIC-US
FAIL: gdb.base/charset.exp: check value of "\n" in EBCDIC-US
FAIL: gdb.base/charset.exp: try printing '\t' in EBCDIC-US
FAIL: gdb.base/charset.exp: check value of '\t' in EBCDIC-US
FAIL: gdb.base/charset.exp: check value of "\t" in EBCDIC-US
FAIL: gdb.base/charset.exp: check value of escape that doesn't exist in 
EBCDIC-US
FAIL: gdb.base/charset.exp: print string in IBM1047
FAIL: gdb.base/charset.exp: check value of parsed character literal in 
IBM1047
FAIL: gdb.base/charset.exp: check value of parsed string literal in IBM1047
FAIL: gdb.base/charset.exp: try printing '\a' in IBM1047
FAIL: gdb.base/charset.exp: check value of '\a' in IBM1047
FAIL: gdb.base/charset.exp: check value of "\a" in IBM1047
FAIL: gdb.base/charset.exp: try printing '\b' in IBM1047
FAIL: gdb.base/charset.exp: check value of '\b' in IBM1047
FAIL: gdb.base/charset.exp: check value of "\b" in IBM1047
FAIL: gdb.base/charset.exp: try printing '\n' in IBM1047
FAIL: gdb.base/charset.exp: check value of '\n' in IBM1047
FAIL: gdb.base/charset.exp: check value of "\n" in IBM1047
FAIL: gdb.base/charset.exp: try printing '\t' in IBM1047
FAIL: gdb.base/charset.exp: check value of '\t' in IBM1047
FAIL: gdb.base/charset.exp: check value of "\t" in IBM1047
FAIL: gdb.base/charset.exp: check value of escape that doesn't exist in 
IBM1047
FAIL: gdb.base/charset.exp: print string in UCS-4
FAIL: gdb.base/charset.exp: parse character literal in UCS-4
FAIL: gdb.base/charset.exp: check value of parsed character literal in UCS-4
FAIL: gdb.base/charset.exp: check value of parsed string literal in UCS-4
FAIL: gdb.base/charset.exp: try printing '\a' in UCS-4
FAIL: gdb.base/charset.exp: check value of '\a' in UCS-4
FAIL: gdb.base/charset.exp: check value of "\a" in UCS-4
FAIL: gdb.base/charset.exp: try printing '\b' in UCS-4
FAIL: gdb.base/charset.exp: check value of '\b' in UCS-4
FAIL: gdb.base/charset.exp: check value of "\b" in UCS-4
FAIL: gdb.base/charset.exp: try printing '\f' in UCS-4
FAIL: gdb.base/charset.exp: check value of '\f' in UCS-4
FAIL: gdb.base/charset.exp: check value of "\f" in UCS-4
FAIL: gdb.base/charset.exp: try printing '\n' in UCS-4
FAIL: gdb.base/charset.exp: check value of '\n' in UCS-4
FAIL: gdb.base/charset.exp: check value of "\n" in UCS-4
FAIL: gdb.base/charset.exp: try printing '\r' in UCS-4
FAIL: gdb.base/charset.exp: check value of '\r' in UCS-4
FAIL: gdb.base/charset.exp: check value of "\r" in UCS-4
FAIL: gdb.base/charset.exp: try printing '\t' in UCS-4
FAIL: gdb.base/charset.exp: check value of '\t' in UCS-4
FAIL: gdb.base/charset.exp: check value of "\t" in UCS-4
FAIL: gdb.base/charset.exp: try printing '\v' in UCS-4
FAIL: gdb.base/charset.exp: check value of '\v' in UCS-4
FAIL: gdb.base/charset.exp: check value of "\v" in UCS-4
FAIL: gdb.base/charset.exp: print escape that doesn't exist in UCS-4
FAIL: gdb.base/charset.exp: check value of escape that doesn't exist in 
UCS-4
FAIL: gdb.base/charset.exp: non-representable target character
FAIL: gdb.base/charset.exp: print '\9'
FAIL: gdb.base/charset.exp: basic wide character

                === gdb Summary ===

# of expected passes            129
# of unexpected failures        63
/vol/d/compile/gdb-6.8.50-cvs-ov_obj/gdb/testsuite/../../gdb/gdb 
version  6.8.50.20090324-cvs -nw -nx

make[1]: *** [check] Error 1
make[1]: Leaving directory 
`/vol/d/compile/gdb-6.8.50-cvs-ov_obj/gdb/testsuite'
make: *** [check] Error 2

As you can see it fails (but does not hang)...

Roland


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Problem on cygwin with new wchar_t printing support via iconv()
@ 2009-03-24 10:04 Roland Schwingel
  2009-03-24 16:44 ` Tom Tromey
  0 siblings, 1 reply; 7+ messages in thread
From: Roland Schwingel @ 2009-03-24 10:04 UTC (permalink / raw)
  To: gdb

Hi...

With the new wchar_t printing support using iconv() I got some trouble 
on cygwin 1.5.25.

I simply freezes when I try to step into a function having a wchar_t * 
as parameter.
I have buildt gdb both using the cygwin supplied libiconv and an own 
libiconv intree
with gdb sources.

 From what I have diagnosed it runs into an endless loop in 
wchar_to_loop_convert()
in libiconv's loop_wchar.h.

The default charsets of gdb after starting it:
target-charset = US_ASCII
targe-wide-charset = UCS-4

When I disable iconv() usage everything is fine again, beside of the 
fact that I can't use
the new feature. BTW: I am using the most recent CVS sources.

Roland


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-03-25 19:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-25  8:56 Problem on cygwin with new wchar_t printing support via iconv() Roland Schwingel
2009-03-25 15:13 ` Pedro Alves
2009-03-25 15:19   ` Pedro Alves
2009-03-25 19:17   ` Tom Tromey
2009-03-25 19:14 ` Tom Tromey
  -- strict thread matches above, loose matches on Subject: below --
2009-03-24 10:04 Roland Schwingel
2009-03-24 16:44 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox