From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29271 invoked by alias); 25 Mar 2003 16:41:56 -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 29262 invoked from network); 25 Mar 2003 16:41:55 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 25 Mar 2003 16:41:55 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 8F36E2B11; Tue, 25 Mar 2003 11:41:48 -0500 (EST) Message-ID: <3E8086CC.2030001@redhat.com> Date: Tue, 25 Mar 2003 16:41:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Cagney Cc: Adam Fedor , GDB Patches Subject: Re: [PATCH] Step over Objective-C dispatch function References: <3E1504FF.2070506@doc.com> <3E39E4F3.E7865684@redhat.com> <3E39E86E.9060700@redhat.com> <3E39F35A.9050208@doc.com> <3E7A2DCA.6050205@redhat.com> <3E807C37.1040804@doc.com> <3E8082EE.2010207@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-03/txt/msg00497.txt.bz2 > +CORE_ADDR +skip_language_trampoline (CORE_ADDR pc) > +{ > + int i; > + CORE_ADDR real_pc = 0; > + > + for (i = 0; i < languages_size; i++) > + { > + if (languages[i]->skip_trampoline) > + { > + real_pc = (languages[i]->skip_trampoline)(pc); > + if (real_pc) > + break; > + } > + } > + > + return real_pc; > > Return 0. Otherwize, the old SKIP_TRAMPOLINE_CODE() won't kick in. Actually, never mind. Although: CORE_ADDR real_pc = ... if (real_pc) return real_pc; ... return 0; might be easier to read. Andrew