From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5028 invoked by alias); 26 Jun 2012 05:34:05 -0000 Received: (qmail 4776 invoked by uid 22791); 26 Jun 2012 05:34:03 -0000 X-SWARE-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-wi0-f177.google.com (HELO mail-wi0-f177.google.com) (209.85.212.177) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 26 Jun 2012 05:33:50 +0000 Received: by wibhm11 with SMTP id hm11so2736268wib.12 for ; Mon, 25 Jun 2012 22:33:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.210.229 with SMTP id u79mr8244908weo.31.1340688829282; Mon, 25 Jun 2012 22:33:49 -0700 (PDT) Received: by 10.216.235.140 with HTTP; Mon, 25 Jun 2012 22:33:49 -0700 (PDT) In-Reply-To: References: Date: Tue, 26 Jun 2012 05:34:00 -0000 Message-ID: Subject: Re: elf32 corefile, which sections ? From: oza Pawandeep To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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: 2012-06/txt/msg00083.txt.bz2 Is this the code snippet which would get it done ? function is: 'get_core_registers' get_core_register_section (regcache, ".reg", 0, "general-purpose", 1); get_core_register_section (regcache, ".reg2", 2, "floating-point", 0); get_core_register_section (regcache, ".reg-xfp", 3, "extended floating-point", 0); get_core_register_section (regcache, ".reg-ppc-vmx", 3, "ppc Altivec", 0); get_core_register_section (regcache, ".reg-ppc-vsx", 4, "POWER7 VSX", 0); Regards, Oza. On Tue, Jun 26, 2012 at 10:55 AM, oza Pawandeep wrote: > Hi, > > What all sections, in elf32 corefile, are looked upon by gdb/bfd, to > get processor's status register and other registers when system > crashed ? > > Regards, > Oza.