From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28292 invoked by alias); 1 Oct 2008 01:51:47 -0000 Received: (qmail 28280 invoked by uid 22791); 1 Oct 2008 01:51:46 -0000 X-Spam-Check-By: sourceware.org Received: from bay0-omc3-s16.bay0.hotmail.com (HELO bay0-omc3-s16.bay0.hotmail.com) (65.54.246.216) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 01 Oct 2008 01:50:50 +0000 Received: from BAY144-W3 ([65.55.155.38]) by bay0-omc3-s16.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 30 Sep 2008 18:50:48 -0700 Message-ID: From: Mukesh Rathor To: Subject: offset of a struct field (qSymbol) Date: Wed, 01 Oct 2008 01:51:00 -0000 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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/msg00000.txt.bz2 Hi, I've written a gdbserver (gdbsx) for xen to debug guests. I'm trying to fi= gure out if there's a way to figure offset of a field from gdbserver.=20 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. thanks a lot, Mukesh _________________________________________________________________ Want to do more with Windows Live? Learn =9310 hidden secrets=94 from Jamie. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!5= 50F681DAD532637!5295.entry?ocid=3DTXT_TAGLM_WL_domore_092008