From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12217 invoked by alias); 1 Oct 2008 22:25:53 -0000 Received: (qmail 12167 invoked by uid 22791); 1 Oct 2008 22:25:53 -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 22:25:13 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 6858F10D2A; Wed, 1 Oct 2008 22:25:11 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 4AFE3104B9; Wed, 1 Oct 2008 22:25:11 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KlA86-0003Zg-IS; Wed, 01 Oct 2008 18:25:10 -0400 Date: Wed, 01 Oct 2008 22:25:00 -0000 From: Daniel Jacobowitz To: Michael Snyder Cc: Mukesh Rathor , "gdb@sourceware.org" Subject: Re: offset of a struct field (qSymbol) Message-ID: <20081001222510.GA13722@caradoc.them.org> Mail-Followup-To: Michael Snyder , Mukesh Rathor , "gdb@sourceware.org" References: <48E3F758.6070701@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48E3F758.6070701@vmware.com> 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/msg00012.txt.bz2 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? 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. I've worked with some other debug tools that worked this way and it was a terrible headache. -- Daniel Jacobowitz CodeSourcery