From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17742 invoked by alias); 18 Jun 2009 14:11:58 -0000 Received: (qmail 17732 invoked by uid 22791); 18 Jun 2009 14:11:58 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Jun 2009 14:11:51 +0000 Received: from wpaz1.hot.corp.google.com (wpaz1.hot.corp.google.com [172.24.198.65]) by smtp-out.google.com with ESMTP id n5IEBllA031652 for ; Thu, 18 Jun 2009 15:11:48 +0100 Received: from qyk41 (qyk41.prod.google.com [10.241.83.169]) by wpaz1.hot.corp.google.com with ESMTP id n5IEB5pW026816 for ; Thu, 18 Jun 2009 07:11:45 -0700 Received: by qyk41 with SMTP id 41so2109262qyk.6 for ; Thu, 18 Jun 2009 07:11:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.84.72 with SMTP id i8mr272236qcl.63.1245334305113; Thu, 18 Jun 2009 07:11:45 -0700 (PDT) In-Reply-To: <8ac60eac0906180706g13d0c7c8q5c9434664de9d664@mail.gmail.com> References: <20090527001157.934BD76BC0@localhost> <8ac60eac0906101839t4d3978fyc1c6d3b3e2eccb6e@mail.gmail.com> <8ac60eac0906101842y2d2fc9fco331cb4336d9508d0@mail.gmail.com> <8ac60eac0906161342m67c30151lc7f685e0eb36e41f@mail.gmail.com> <8ac60eac0906161407s6498913cu5e50e930d599be77@mail.gmail.com> <200906180919.n5I9Jh9H004739@d06av01.portsmouth.uk.ibm.com> <8ac60eac0906180706g13d0c7c8q5c9434664de9d664@mail.gmail.com> Date: Thu, 18 Jun 2009 14:11:00 -0000 Message-ID: <8ac60eac0906180711x73894856obde1068b8a73ad43@mail.gmail.com> Subject: Re: [patch] Use mmap instead of obstack_alloc for dwarf debug sections. From: Paul Pluzhnikov To: Ken Werner Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00469.txt.bz2 On Thu, Jun 18, 2009 at 7:06 AM, Paul Pluzhnikov wrote: > I think the cast would be wrong, as dwarf2_get_section_info would really > write 'unsigned long long' and corrupt your stack. Assuming 'sizeof(long long) > sizeof(long)' on your machine of course. -- Paul Pluzhnikov