From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17177 invoked by alias); 27 Feb 2006 16:21:35 -0000 Received: (qmail 17166 invoked by uid 22791); 27 Feb 2006 16:21:34 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 27 Feb 2006 16:21:34 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FDl7q-0005Jz-UM; Mon, 27 Feb 2006 11:21:31 -0500 Date: Tue, 28 Feb 2006 02:30:00 -0000 From: Daniel Jacobowitz To: Harsha HS Cc: gdb@sources.redhat.com Subject: Re: reading register information from corefile Message-ID: <20060227162130.GA20368@nevyn.them.org> Mail-Followup-To: Harsha HS , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00324.txt.bz2 On Mon, Feb 27, 2006 at 09:46:13PM +0530, Harsha HS wrote: > Hello, > > I am trying to build a corss gdb for mips r3k architecture. I am able > to load any mips executable on gdb and can debug the same > > But when i try to load core file i get the message that "GDB can't > read core files on this machine". > > Can u please help me by pointing to the code where I have to add to > struct target_ops the mips core file format and also the note section > in the core file to read the register information for a standalone > embedded application. No, it's not in target_ops. Take a look at set_gdbarch_regset_from_core_section instead. -- Daniel Jacobowitz CodeSourcery