From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10151 invoked by alias); 4 Aug 2009 14:22:38 -0000 Received: (qmail 10141 invoked by uid 22791); 4 Aug 2009 14:22:37 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 04 Aug 2009 14:22:32 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n74EMRiC010129; Tue, 4 Aug 2009 10:22:27 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n74EMQ7S021962; Tue, 4 Aug 2009 10:22:27 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n74EMQMS016270; Tue, 4 Aug 2009 10:22:26 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id B442F3784B8; Tue, 4 Aug 2009 08:22:25 -0600 (MDT) To: Paul Pluzhnikov Cc: gdb-patches ml Subject: Re: [patch] Speed up find_pc_section References: <8ac60eac0907161724v40e5bd8bg7877d8901b8d7b6e@mail.gmail.com> <8ac60eac0907170927x6314e81djc7f37e8a383dff2b@mail.gmail.com> <8ac60eac0907211318j11706eb3u2339901a832e2360@mail.gmail.com> From: Tom Tromey Reply-To: tromey@redhat.com Date: Tue, 04 Aug 2009 14:22:00 -0000 In-Reply-To: <8ac60eac0907211318j11706eb3u2339901a832e2360@mail.gmail.com> (Paul Pluzhnikov's message of "Tue\, 21 Jul 2009 13\:18\:26 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-08/txt/msg00044.txt.bz2 >>>>> "Paul" == Paul Pluzhnikov writes: Hi Paul. Paul> 2009-07-21 Paul Pluzhnikov Paul> * objfiles.c (objfiles_updated_p): New variable. Paul> (qsort_cmp, bsearch_cmp, update_section_map): New function. Paul> (find_pc_section): Use bsearch. Paul> (set_objfiles_updated_on_exe_change): New function. Paul> (set_objfiles_updated_on_solib_activity): New function. Paul> (_initialize_objfiles): New function. Paul> +static int Paul> +qsort_cmp (const void *a, const void *b) [...] Paul> + /* This can happen for separate debug-info files. */ Paul> + gdb_assert (obj_section_endaddr (sect1) == obj_section_endaddr (sect2)); I managed to trigger this assert yesterday. I was debugging a gcj-compiled program on F11. I used the system gcj, and I had the libgcj debuginfo installed. The libgcj separate debuginfo had a section with the same start address but a different length as a section in libgcj itself. Would you mind looking at this and figuring out how to fix it? If you need more information, I can provide it -- either details from debugging or instructions on reproducing if you have F11 available. Tom