From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5923 invoked by alias); 24 Sep 2004 18:48:11 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5674 invoked from network); 24 Sep 2004 18:48:09 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 24 Sep 2004 18:48:09 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i8OIm9ux031571 for ; Fri, 24 Sep 2004 14:48:09 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i8OIm3r29740; Fri, 24 Sep 2004 14:48:03 -0400 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id EF54528D2; Fri, 24 Sep 2004 14:45:46 -0400 (EDT) Message-ID: <41546B5A.7080308@redhat.com> Date: Fri, 24 Sep 2004 18:48:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040831 MIME-Version: 1.0 To: Michael Chastain Cc: gdb-patches@sources.redhat.com Subject: Re: [rfa/testsuite] 64-bit bigcore.exp fixes References: <415425D9.1060902@redhat.com> <415465A0.nail1EK21DHQX@mindspring.com> In-Reply-To: <415465A0.nail1EK21DHQX@mindspring.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-09/txt/msg00412.txt.bz2 > Okay, approved. It's in. I forgot to mention that Dave Anderson (@redhat) came up with the seek trick, I added his name to the ChangeLog before committing. thanks, Andrew > 2004-09-24 Andrew Cagney > > * gdb.base/bigcore.exp (extract_heap): If the expect "file size" > command fails, assume things will work. > * gdb.base/bigcore.c: Include and . > (_GNU_SOURCE): Define. > (print_unsigned, print_hex): Change parameter to "long long". > (print_byte_count): New function, use to print byte counts. > (large_off_t, large_lseek, O_LARGEFILE): Define dependant on > O_LARGEFILE. > (main): Compute an upper bound on a corefile in max_core_size. > Limit memory chunk size to max_core_size. Limit total memory > allocated to max_core_size.