From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5459 invoked by alias); 20 Feb 2002 10:49:29 -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 5340 invoked from network); 20 Feb 2002 10:49:28 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 20 Feb 2002 10:49:28 -0000 Received: by fw-cam.cambridge.arm.com; id KAA00844; Wed, 20 Feb 2002 10:49:27 GMT Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xma026180; Wed, 20 Feb 02 10:44:40 GMT Received: from cam-mail2.cambridge.arm.com (localhost [127.0.0.1]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id KAA16287; Wed, 20 Feb 2002 10:44:39 GMT Received: from sun18.cambridge.arm.com (sun18.cambridge.arm.com [172.16.2.18]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id KAA06258; Wed, 20 Feb 2002 10:44:39 GMT Message-Id: <200202201044.KAA06258@cam-mail2.cambridge.arm.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Pierre Muller cc: gdb-patches@sources.redhat.com, Richard.Earnshaw@arm.com Reply-To: Richard.Earnshaw@arm.com Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: Re: PATCH multi-arch GET_LONGJMP_TARGET In-reply-to: Your message of "Tue, 19 Feb 2002 10:41:38 GMT." <200202191041.KAA18603@cam-mail2.cambridge.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 20 Feb 2002 02:49:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-02/txt/msg00525.txt.bz2 > Thinking about it, the cleanest way to handle this for now is to change > the test for a definition of JB_PC, since unless that is defined the code > won't compile, and even if it did it would give the wrong answer. > > As far as I can tell, apart from i386, only two further ports define > GET_LONGJMP_TARGET: arc and sparc. Arc seems never to use the code > (there's only one .h file for that port and it doesn't define > GET_LONGJMP_TARGET or JB_PC); Sparc seems to define it for pretty much all > configurations I can think of. > R. > > Richard Earnshaw > > * arc-tdep.c (get_longjmp_target): Only compile this function if > JB_PC is defined. > * sparc-tdep.c (get_longjmp_target): Likewise. I've committed this, given that it was potentially breaking these targets by not having this change. R.