From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17814 invoked by alias); 6 Oct 2004 17:41:57 -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 17661 invoked from network); 6 Oct 2004 17:41:55 -0000 Received: from unknown (HELO sadr.equallogic.com) (66.155.203.134) by sourceware.org with SMTP; 6 Oct 2004 17:41:55 -0000 Received: from sadr.equallogic.com (localhost.localdomain [127.0.0.1]) by sadr.equallogic.com (8.12.8/8.12.8) with ESMTP id i96HfsFp029688 for ; Wed, 6 Oct 2004 13:41:54 -0400 Received: from M30.equallogic.com (m30 [172.16.1.30]) by sadr.equallogic.com (8.12.8/8.12.8) with SMTP id i96Hfrsw029683; Wed, 6 Oct 2004 13:41:53 -0400 Received: from pkoning.equallogic.com ([172.16.1.220]) by M30.equallogic.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 6 Oct 2004 13:41:53 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16740.11872.402907.34596@gargle.gargle.HOWL> Date: Wed, 06 Oct 2004 17:45:00 -0000 From: Paul Koning To: drow@false.org Cc: Cenedese@indel.ch, gdb@sources.redhat.com Subject: Re: core file not loaded References: <5.2.0.9.1.20041006132207.01d43578@NT_SERVER> <5.2.0.9.1.20041006160537.01bce208@NT_SERVER> <20041006171222.GA7809@nevyn.them.org> X-OriginalArrivalTime: 06 Oct 2004 17:41:53.0672 (UTC) FILETIME=[C4811080:01C4ABCB] X-SW-Source: 2004-10/txt/msg00158.txt.bz2 >>>>> "Daniel" == Daniel Jacobowitz writes: Daniel> On Wed, Oct 06, 2004 at 04:16:08PM +0200, Fabian Cenedese Daniel> wrote: >> >> gdb-6.1.1 on cygwin, target=PPC >> > >> >More specific - what target triplet? >> >> Sorry, --host=i686-pc-cygwin --target=powerpc-eabi >> ... >> My understanding was, that I could take a memory snapshot of the >> target (in this case about 4MB) and feed this to gdb so gdb will >> use this file for read accesses instead of reading a physical >> target (in addition to the symbolfile). Is this wrong? Or is this >> not a core file? Daniel> That's not a core file. You can probably convert it to a Daniel> core file, but you'd also have to teach the BFD and GDB Daniel> powerpc-eabi support to recognize it as a powerpc-eabi core Daniel> file. Daniel> A core file is one of several "standard" formats, generated Daniel> by various operating systems - lately, a particular kind of Daniel> ELF object. Easiest might be to convert your binary dump to Daniel> an ELF core file and copy support from powerpc-linux. Daniel> Note that a memory dump isn't enough; for instance, you've Daniel> lost all register values. The other issue (at least when last I looked) is that gdb is only willing to handle corefiles for native builds, not for crossbuilds. If your target state is more than just a single executing program, you're really dealing with a kernel corefile, which is a whole different class of beast. paul