From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21807 invoked by alias); 11 Mar 2004 19:30:22 -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 21800 invoked from network); 11 Mar 2004 19:30:21 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 11 Mar 2004 19:30:21 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 6B6F32B92; Thu, 11 Mar 2004 14:29:44 -0500 (EST) Message-ID: <4050BE28.3020100@gnu.org> Date: Thu, 11 Mar 2004 19:30:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Manoj Iyer Cc: gdb@sources.redhat.com Subject: Re: (PPC64) 64 bit GDB unable to set br in 32bit app References: <404E2323.6050409@gnu.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03/txt/msg00104.txt.bz2 > Andrew, > > >>> You'll need a very recent GDB (which contains fixes for the can't insert >>> breakpoint problem you noticed) a long with these fixes: >>> http://sources.redhat.com/ml/gdb-patches/2004-03/msg00177.html >>> http://sources.redhat.com/ml/gdb-patches/2004-03/msg00176.html >>> which make GDB's handling of register sets more robust. > > > Are these patches valid for gdb 6.1 as well?? or does gdb6.1 take care of > these problems? I tried these patches on a 6.1 tree and seems like I am > missing something... I get an ppc-linux-tdep.c:1046: error: > `ppc32_linux_gregset' undeclared (first use in this function) They are mainline patches that may get backported to 6.1. I'm wondering if the patches applied cleanly as they appear to contain: +static struct regset ppc32_linux_gregset = { + NULL, ppc32_linux_supply_gregset +}; ... +ppc_linux_regset_from_core_section (struct gdbarch *core_arch, + const char *sect_name, size_t sect_size) ... + if (tdep->wordsize == 4) + return &ppc32_linux_gregset; Andrew