From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32204 invoked by alias); 6 Oct 2004 14:21: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 32098 invoked from network); 6 Oct 2004 14:21:55 -0000 Received: from unknown (HELO smtp.hispeed.ch) (62.2.95.247) by sourceware.org with SMTP; 6 Oct 2004 14:21:55 -0000 Received: from indel.ch (217-162-27-127.dclient.hispeed.ch [217.162.27.127]) by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with SMTP id i96ELspd017768 for ; Wed, 6 Oct 2004 16:21:54 +0200 Received: from fabi.indel.ch [192.168.1.19] by indel.ch [127.0.0.1] with SMTP (MDaemon.v2.7.SP5.R) for ; Wed, 06 Oct 2004 16:21:45 +0200 Message-Id: <5.2.0.9.1.20041006160537.01bce208@NT_SERVER> X-Sender: cenedese@NT_SERVER (Unverified) Date: Wed, 06 Oct 2004 16:22:00 -0000 To: gdb@sources.redhat.com From: Fabian Cenedese Subject: Re: core file not loaded In-Reply-To: <20041006134021.GB22197@nevyn.them.org> References: <5.2.0.9.1.20041006132207.01d43578@NT_SERVER> <5.2.0.9.1.20041006132207.01d43578@NT_SERVER> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-MDaemon-Deliver-To: gdb@sources.redhat.com X-Return-Path: cenedese@indel.ch X-SW-Source: 2004-10/txt/msg00129.txt.bz2 >> gdb-6.1.1 on cygwin, target=PPC > >More specific - what target triplet? Sorry, --host=i686-pc-cygwin --target=powerpc-eabi >> I tried to read a core dump file of our embedded target, but gdb gives >> me an error: >> >> (gdb) core N:/Temp/SAMCLASS/MemDmp00.bin >> GDB can't read core files on this machine. >> (gdb) core >> GDB can't read core files on this machine. >> >> I looked for the error message in the sources and found this: >> >> /* Find a single core_stratum target in the list of targets and return it. >> If for some reason there is more than one, return NULL. */ >> >> But I couldn't see what's wrong. What is needed to work with a core file? > >The target needs to tell GDB how to load core files. This is a highly >OS-specific operation. 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? Thanks bye Fabi