From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22964 invoked by alias); 28 Feb 2006 15:50:33 -0000 Received: (qmail 22942 invoked by uid 22791); 28 Feb 2006 15:50:31 -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; Tue, 28 Feb 2006 15:50:29 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FE77L-0007X0-3t; Tue, 28 Feb 2006 10:50:27 -0500 Date: Tue, 28 Feb 2006 23:49:00 -0000 From: Daniel Jacobowitz To: Harsha HS Cc: gdb@sources.redhat.com Subject: Re: reading register information from corefile Message-ID: <20060228155027.GA28777@nevyn.them.org> Mail-Followup-To: Harsha HS , gdb@sources.redhat.com References: <20060227162130.GA20368@nevyn.them.org> 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/msg00330.txt.bz2 On Tue, Feb 28, 2006 at 09:15:57PM +0530, Harsha HS wrote: > I am trying to build a corss gdb for mips r3k architecture. When i try > to load core file i get the message that "GDB can't read core files on > this machine", as the function find_target_core returns NULL. > > find_target_core scans the struct target_ops for the core_stratum and > returns the appropriate target structure. > > Can u please help me on how to initialize the struct target_ops with > the relevent values to support the loading of the core file specific > to mips target. It sounds like you didn't link in core file support. Add it to the list of target-specific files for your target - look at some of the Linux or BSD targets for an example. -- Daniel Jacobowitz CodeSourcery