From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3873 invoked by alias); 14 Oct 2010 16:40:59 -0000 Received: (qmail 3768 invoked by uid 22791); 14 Oct 2010 16:40:57 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Oct 2010 16:40:48 +0000 Received: (qmail 18528 invoked from network); 14 Oct 2010 16:40:46 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 14 Oct 2010 16:40:46 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.69) (envelope-from ) id 1P6QrE-0005H9-QX; Thu, 14 Oct 2010 16:40:44 +0000 Date: Thu, 14 Oct 2010 16:40:00 -0000 From: "Joseph S. Myers" To: xingxing pan cc: gdb Subject: Re: About the initialization of 'struct linux_record_tdep' In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: 2010-10/txt/msg00048.txt.bz2 On Thu, 14 Oct 2010, xingxing pan wrote: > Hi. I'm just porting the process record function to an ARM similar arch. > To initialize the struct linux_record_tdep, one has to collect the > size of various types. > Is there some way to do this beside diving into the kernel source or > system including files? > Why not finish the collecting during the configure stage? You don't generally have target headers available when configuring GDB, only those for the host system, and it is also possible that a single GDB configuration supports multiple target ABIs (32-bit and 64-bit say). -- Joseph S. Myers joseph@codesourcery.com