From: Yao Qi <yao@codesourcery.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Skip gcore-buffer-overflow.exp on windows
Date: Fri, 16 Nov 2012 01:11:00 -0000 [thread overview]
Message-ID: <50A592BB.1070403@codesourcery.com> (raw)
In-Reply-To: <83k3tmu71a.fsf@gnu.org>
On 11/16/2012 01:09 AM, Eli Zaretskii wrote:
> ??? First, does the MinGW build of GDB really support the gcore
> command? In my testing, it fails saying "Can't create a corefile".
> Which figures, since MinGW doesn't support them.
>
Eli,
Our GDB is configured as "--host=i686-mingw32
--target=i686-pc-linux-gnu", instead of native mingw32 gdb.
...
(gdb) gcore
Saved corefile core.2493
So gcore works, and sorry for the confusion.
> And second, why in the world is this file name too long? The
> limitation imposed by Windows on file-names used in "ANSI" APIs is 256
> characters, not 80 or 150 that we see above. So why is this failing?
I checked the log today again, and find the compilation is failed
because of the too-long file name, I think.
Executing on host: i686-pc-linux-gnu-gcc gcore-buffer-overflow.c -I
/scratch/yqi/i686-pc-linux-gnu-lite/src/gdb-trunk/gdb/testsuite/gdb.base
-Wl,-dynamic-linker,/scratch/yqi/i686-pc-linux-gnu-lite/obj/test-2012.09-999999-i686-pc-linux-gnu/host-i686-mingw32/ia32-2012.09/i686-pc-linux-gnu/libc/./lib/ld-linux.so.2
-Wl,-rpath,/scratch/yqi/i686-pc-linux-gnu-lite/obj/test-2012.09-999999-i686-pc-linux-gnu/host-i686-mingw32/ia32-2012.09/i686-pc-linux-gnu/libc/./lib/./
-Wl,-rpath,/scratch/yqi/i686-pc-linux-gnu-lite/obj/test-2012.09-999999-i686-pc-linux-gnu/host-i686-mingw32/ia32-2012.09/i686-pc-linux-gnu/libc/./usr/lib/./
-g -lm -o
/scratch/yqi/i686-pc-linux-gnu-lite/obj/test-2012.09-999999-i686-pc-linux-gnu/host-i686-mingw32/default/gdb.d/gdb.base/gcore-buffer-overflow-01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
(timeout = 3000)
c:/cygwin/home/yqi/test-i686-mingw32/test-build5-lucid-cs/ia32-2012.09/bin/../lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld.exe:
cannot open output file
/scratch/yqi/i686-pc-linux-gnu-lite/obj/test-2012.09-999999-i686-pc-linux-gnu/host-i686-mingw32/default/gdb.d/gdb.base/gcore-buffer-overflow-01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789:
No such file or directory^M^M
collect2.exe: error: ld returned 1 exit status
--
Yao (é½å°§)
next prev parent reply other threads:[~2012-11-16 1:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-15 15:02 Yao Qi
2012-11-15 15:21 ` Joel Brobecker
2012-11-15 16:04 ` Pedro Alves
2012-11-15 17:09 ` Eli Zaretskii
2012-11-16 1:11 ` Yao Qi [this message]
2012-11-16 15:57 ` Eli Zaretskii
2012-11-19 2:41 ` Yao Qi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50A592BB.1070403@codesourcery.com \
--to=yao@codesourcery.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox