From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23378 invoked by alias); 10 Feb 2008 08:48:20 -0000 Received: (qmail 23368 invoked by uid 22791); 10 Feb 2008 08:48:19 -0000 X-Spam-Check-By: sourceware.org Received: from web94605.mail.in2.yahoo.com (HELO web94605.mail.in2.yahoo.com) (203.104.17.149) by sourceware.org (qpsmtpd/0.31) with SMTP; Sun, 10 Feb 2008 08:47:49 +0000 Received: (qmail 94774 invoked by uid 60001); 10 Feb 2008 08:47:45 -0000 X-YMail-OSG: aST2hrMVM1lgNiMhn7Eq.paa8tWYrgq79.iRToYhJaUBE1P3fjUdhaEYwNFsZYYCqIQ9mcIuGGn7.zUNeS0gbyKBj0IVIzAumrEL Received: from [122.167.28.23] by web94605.mail.in2.yahoo.com via HTTP; Sun, 10 Feb 2008 14:17:44 IST X-Mailer: YahooMailWebService/0.7.162 Date: Sun, 10 Feb 2008 08:48:00 -0000 From: rahul dev Reply-To: rahul_dev_agg@yahoo.co.in Subject: support for core files for target powerpc-eabi To: gdb@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <11312.94560.qm@web94605.mail.in2.yahoo.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00045.txt.bz2 Guys, I have configured my gdb for target powerpc-eabi. My host machine is i686-pc-cygwin. My aim is to analyze the memory dumps collected from an embedded system. My embedded system doesn't run any OS. So, I collect the memory dumps from the system. I then convert these memory dumps to an elf core file. However, when I try to debug this core file using gdb, I get an error=20 message "GDB can't read core files on this machine.". I want to know what is reason for this message? Don't we have a support to analyze the corefile for powerpc-eabi ? Now, when I compile gdb for target powerpc-linux, and analyze the same corefile, I don't get any error message. I can see the contents of all .data and .bss and other memory sections. I can even see various registers. However, the dirty things that I have to do is to construct the NOTE sections (NT_PRSTATUS) in the same format that powerpc-linux target does. The gdb has hardcoded the size of prstatus not section for=20 powerpc-linux to be 268 and looks for GPRs at specific offsets in=20 pr_reg field of prstatus. My question is if this is a correct way to do the things ? Is there a better way of achieve this? Is there a way to analyze my corefile, if I configure the gdb for powerpc-eabi, Or should I continue to do configure gdb for powerpc-linux and construct the NOTE section in the same format linux-powerpc does. I would be highly grateful for any help/suggestions thanks a lot in advance.=20=20 =20 Get the freedom to save as many mails as you wish. To know how, go to= http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html