From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7885 invoked by alias); 1 Oct 2008 11:55:18 -0000 Received: (qmail 7875 invoked by uid 22791); 1 Oct 2008 11:55:17 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 01 Oct 2008 11:54:37 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id E9A9710D2A; Wed, 1 Oct 2008 11:54:35 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id B0EC0104B9; Wed, 1 Oct 2008 11:54:35 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Kl0Hq-0000xH-SK; Wed, 01 Oct 2008 07:54:34 -0400 Date: Wed, 01 Oct 2008 11:55:00 -0000 From: Daniel Jacobowitz To: Mukesh Rathor Cc: gdb@sourceware.org Subject: Re: offset of a struct field (qSymbol) Message-ID: <20081001115434.GA2923@caradoc.them.org> Mail-Followup-To: Mukesh Rathor , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) 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-10/txt/msg00002.txt.bz2 On Wed, Oct 01, 2008 at 01:50:48AM +0000, Mukesh Rathor wrote: > > Hi, > I've written a gdbserver (gdbsx) for xen to debug guests. I'm trying to figure out if there's a way to figure offset of a field from gdbserver. > > Thus, init_mm is a struct, and I can do qSymbol on init_mm, but not > init_mm.pgd. I am wondering if there's anyway to do that at present, > or get gdb to do "print &(init_mm.pgd) somehow and send me the > value. No, not presently. -- Daniel Jacobowitz CodeSourcery