From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12785 invoked by alias); 21 Jul 2009 20:51:35 -0000 Received: (qmail 12775 invoked by uid 22791); 21 Jul 2009 20:51:35 -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, 21 Jul 2009 20:51:27 +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 n6LKpMHw005225; Tue, 21 Jul 2009 16:51:22 -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 n6LKpLNo019616; Tue, 21 Jul 2009 16:51:21 -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 n6LKpK7d030247; Tue, 21 Jul 2009 16:51:20 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 652F450800D; Tue, 21 Jul 2009 13:40:00 -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: Tom Tromey Date: Tue, 21 Jul 2009 21:03: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-07/txt/msg00527.txt.bz2 >>>>> "Paul" == Paul Pluzhnikov writes: 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. This is ok, thanks. Tom