From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30431 invoked by alias); 5 Feb 2008 13:07:43 -0000 Received: (qmail 30421 invoked by uid 22791); 5 Feb 2008 13:07:42 -0000 X-Spam-Check-By: sourceware.org Received: from web94607.mail.in2.yahoo.com (HELO web94607.mail.in2.yahoo.com) (203.104.17.157) by sourceware.org (qpsmtpd/0.31) with SMTP; Tue, 05 Feb 2008 13:07:12 +0000 Received: (qmail 11394 invoked by uid 60001); 5 Feb 2008 13:07:08 -0000 X-YMail-OSG: 2h.J1dIVM1mteqAQGhyRQS0TiaTbhMtVgt5Ckd3y6cpffxAsDn7cK2mnTtJ03dxyxoJVyhZ9nVrGXTLPxtfu.0i4TtjGc.zKtHYODVhc4bR36NpWjaaAXxR43MDuSg-- Received: from [203.145.174.100] by web94607.mail.in2.yahoo.com via HTTP; Tue, 05 Feb 2008 18:37:08 IST X-Mailer: YahooMailWebService/0.7.162 Date: Tue, 05 Feb 2008 13:07:00 -0000 From: rahul dev Subject: elf core file format for powerpc To: gdb@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <212813.1619.qm@web94607.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/msg00022.txt.bz2 Guys, =20 I am working on embedded system (powerpc based). I try to collect the m= emory dump over the UART and save it to file. Next, I convert this raw data to the core file and try to analyse the conte= nts of various global variables. gdb shows perfect results for all the vari= ables in .data and .bss sections. However, I do not know how to see the values of various general purpose reg= isters and stack dump. I generally get the following message: warning: Couldn't find general-purpose registers in core file It looks that the gdb try to find the ".reg" section in the core file, but = it couldn't find it. I tried adding a .reg section with the register conten= ts, still I get the same error message. Is there ant utility by which I can add a ".reg" section to the corefile. Also, is anyone aware of any link that describes the core file format (elf,= linux over powerpc) ? I particulary need information about "note0, .reg, = .reg2" sections. Also, is the code for "gcore" available on the internet. I need the source = code for "gcore" that creates a core file in elf format and also adds secti= ons "note0, .reg, .reg2". =20 I would be highly grateful for any help/pointers. thanks a lot......=20 Forgot the famous last words? Access your message archive online at h= ttp://in.messenger.yahoo.com/webmessengerpromo.php