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


> From: Yao Qi <yao@codesourcery.com>
> Date: Thu, 15 Nov 2012 23:01:47 +0800
> 
> Hi,
> When running gcore-buffer-overflow.exp on ia32/windows host,
> we saw the following error,
> 
>   cp: accessing `XXX/gdb.base/gcore-buffer-overflow-01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789': File name too long
> 
> Looks we don't have other supported hosts that have file name length
> limitation, so this patch simply skips it on windows.  Is it OK?

??? 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.

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?

Apologies if I'm missing something.


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