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: [PATCH] Skip gcore-buffer-overflow.exp on windows


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 (éå)


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