From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4988 invoked by alias); 5 Feb 2008 19:45:00 -0000 Received: (qmail 4970 invoked by uid 22791); 5 Feb 2008 19:44:59 -0000 X-Spam-Check-By: sourceware.org Received: from web94614.mail.in2.yahoo.com (HELO web94614.mail.in2.yahoo.com) (203.104.17.185) by sourceware.org (qpsmtpd/0.31) with SMTP; Tue, 05 Feb 2008 19:44:27 +0000 Received: (qmail 95512 invoked by uid 60001); 5 Feb 2008 19:44:24 -0000 X-YMail-OSG: xpkh8nwVM1mTQy0c0X6HZGjfkVd3hJsaa_gMu8sDt_7RpgGGhRf7jM5xWbnEZpHGTLo.hi5F7AHbHnshUJtHQrwuif4cPiA8u9.ojGKoJDwP6rJkMaVaLipkrbMvBw-- Received: from [122.167.16.3] by web94614.mail.in2.yahoo.com via HTTP; Wed, 06 Feb 2008 01:14:23 IST X-Mailer: YahooMailWebService/0.7.162 Date: Tue, 05 Feb 2008 19:45:00 -0000 From: rahul dev Reply-To: rahul_dev_agg@yahoo.co.in Subject: Re: elf core file format for powerpc To: gdb@sourceware.org In-Reply-To: <8f2776cb0802051131s2d8e866cu3c06984a4dba9743@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <19374.94556.qm@web94614.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/msg00033.txt.bz2 --- On Wed, 6/2/08, Jim Blandy wrote: > From: Jim Blandy > Subject: Re: elf core file format for powerpc > To: rahul_dev_agg@yahoo.co.in > Cc: gdb@sourceware.org > Date: Wednesday, 6 February, 2008, 1:01 AM > On Feb 5, 2008 5:42 AM, rahul dev > wrote: > > Can you please provide some information on the note > section and how to > > add register values in the note section. I searched a > lot on the net > > but failed to get any useful information. >=20 > One source of confusion is that the code in GDB that > operates on BFD > sections is actually accessing ELF notes, in a PT_NOTE > program header. > When BFD opens a core file and sees a PT_NOTE program > header, it > turns each note into a "section" with a known > name. See > bfd/elfcore.h:elf_core_file_p, and uses of > _bfd_elfcore_make_pseudosection. >=20 > So if you want to produce .reg "sections" that > GDB can see, you need > to produce PT_NOTE program headers in your core that BFD > will > recognize. Thanks Jim. I can read the registers from the core file now. Also, readelf was really useful, specially the -n option. 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