From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24086 invoked by alias); 21 Mar 2003 10:08:38 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 24078 invoked from network); 21 Mar 2003 10:08:36 -0000 Received: from unknown (HELO kerberos.suse.cz) (195.47.106.10) by sources.redhat.com with SMTP; 21 Mar 2003 10:08:36 -0000 Received: from chimera.suse.cz (chimera.suse.cz [10.20.0.2]) by kerberos.suse.cz (SuSE SMTP server) with ESMTP id 8A2A559D353; Fri, 21 Mar 2003 11:08:35 +0100 (CET) Received: from suse.cz (naga.suse.cz [10.20.1.16]) by chimera.suse.cz (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id h2LA8Zh09751; Fri, 21 Mar 2003 11:08:35 +0100 X-Authentication-Warning: chimera.suse.cz: Host naga.suse.cz [10.20.1.16] claimed to be suse.cz Message-ID: <3E7AE4A3.60601@suse.cz> Date: Fri, 21 Mar 2003 10:08:00 -0000 From: Michal Ludvig Organization: SuSE CR User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: cs, cz, en MIME-Version: 1.0 To: Andrew Cagney Cc: Mark Kettenis , gdb@sources.redhat.com Subject: Call i386_frame_p() only for 32bits Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-03/txt/msg00309.txt.bz2 Hi all, I have this problem with i386newframe-branch on x86-64: In i386-tdep.c:i386_gdbarch_init() there is always called the line frame_unwind_append_predicate (gdbarch, i386_frame_p); regardless if the inferior is 32b or 64b (of course, it isn't yet known at this time). This is obviously wrong, because what i386_frame_p() gives out doesn't make sense for 64b processes. How can I achieve that i386_frame_p() is registered only for 32b processes and x86_64_frame_p() only for 64b ones? Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * (+420) 296.545.373 * http://www.suse.cz