From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13277 invoked by alias); 2 Oct 2008 00:24:18 -0000 Received: (qmail 13268 invoked by uid 22791); 2 Oct 2008 00:24:17 -0000 X-Spam-Check-By: sourceware.org Received: from bay0-omc3-s28.bay0.hotmail.com (HELO bay0-omc3-s28.bay0.hotmail.com) (65.54.246.228) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 02 Oct 2008 00:23:35 +0000 Received: from BAY144-W13 ([65.55.155.48]) by bay0-omc3-s28.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 1 Oct 2008 17:23:33 -0700 Message-ID: From: Mukesh Rathor To: "gdb@sourceware.org" Subject: RE: offset of a struct field (qSymbol) Date: Thu, 02 Oct 2008 00:24:00 -0000 In-Reply-To: <20081001222510.GA13722@caradoc.them.org> References: <48E3F758.6070701@vmware.com> <20081001222510.GA13722@caradoc.them.org> 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/msg00014.txt.bz2 ---------------------------------------- > Date: Wed, 1 Oct 2008 18:25:10 -0400 > From: drow@false.org > To: msnyder@vmware.com > CC: todfod@hotmail.com; gdb@sourceware.org > Subject: Re: offset of a struct field (qSymbol) >=20 > On Wed, Oct 01, 2008 at 03:19:04PM -0700, Michael Snyder wrote: >> There is a syntax for gdb to send an expression to the >> server, and have the server evaluate it. Perhaps we could >> simply reverse that syntax, so that the server could send >> an expression to gdb, and have gdb evaluate it and send >> back the answer? >=20 > IMO this is a bad idea. It's too ambiguous, and it will breed remote > servers that rely on quirks in a particular version of the GDB > expression parser. >=20 > I've worked with some other debug tools that worked this way and it > was a terrible headache. I managed to get by. Basically, I ask the user to lookup the value manually= , and then use monitor to send the info to gdbserver. The monitor cmd reall= y helped simplify things. >=20 > --=20 > Daniel Jacobowitz > CodeSourcery _________________________________________________________________ See how Windows Mobile brings your life together=97at home, work, or on the= go. http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/