From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10918 invoked by alias); 4 Dec 2013 00:01:06 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 10888 invoked by uid 89); 4 Dec 2013 00:01:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: relay1.mentorg.com Received: from Unknown (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 04 Dec 2013 00:01:04 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1VnztY-0005gf-Cy from Luis_Gustavo@mentor.com ; Tue, 03 Dec 2013 16:00:48 -0800 Received: from NA1-MAIL.mgc.mentorg.com ([147.34.98.181]) by svr-orw-fem-01.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 3 Dec 2013 16:00:48 -0800 Received: from [172.30.5.78] ([172.30.5.78]) by NA1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 3 Dec 2013 16:00:47 -0800 Message-ID: <529E709F.6050008@codesourcery.com> Date: Wed, 04 Dec 2013 00:01:00 -0000 From: Luis Machado Reply-To: lgustavo@codesourcery.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: =?UTF-8?B?UGV0ciBIbHV6w61u?= CC: Tom Tromey , gdb , "Maciej W. Rozycki" Subject: Re: Unreliable BFD caching heuristic References: <528E454F.6060003@codesourcery.com> <87a9gjw97b.fsf@fleche.redhat.com> <529DF865.2070104@codesourcery.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00006.txt.bz2 On 12/03/2013 09:33 PM, Petr Hluzín wrote: > > On 3 December 2013 16:27, Luis Machado > wrote: > > I did an experiment with using the inode number in the cache check. > It seems > > to work for the hosts that support that information. On Windows i > think we > > fake inode numbers based on the file name and timestamp, so it could be a > > simpler solution. > > > > Luis > > On Windows you can use GetFileInformationByHandle() function, see > http://msdn.microsoft.com/en-us/library/aa364952.aspx Thanks, but i don't think we would like to have windows-specific calls in such a generic portion of code.