From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1887 invoked by alias); 10 Dec 2006 20:45:10 -0000 Received: (qmail 1878 invoked by uid 22791); 10 Dec 2006 20:45:10 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 10 Dec 2006 20:45:02 +0000 Received: from kahikatea.snap.net.nz (p202-124-125-222.snap.net.nz [202.124.125.222]) by viper.snap.net.nz (Postfix) with ESMTP id 246E23D80E8 for ; Mon, 11 Dec 2006 09:46:09 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id A4A69BE3F2; Mon, 11 Dec 2006 09:40:33 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17788.28864.16294.719219@kahikatea.snap.net.nz> Date: Sun, 10 Dec 2006 20:45:00 -0000 To: gdb@sources.redhat.com Subject: memory address ranges (-var-create) X-Mailer: VM 7.19 under Emacs 22.0.91.15 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: 2006-12/txt/msg00076.txt.bz2 For -var-create - * EXPRESSION the manual says EXPRESSION may be: * `*ADDR-ADDR' -- a memory address range (TBD) but the expression takes the value at the first address and subtracts the second. TBD is a bit ambiguous but perhaps it means "to be done" rather that "to be decided". In any case if -var-create parses an expression like "print" or "break" does then it can't work as it stands as *ADDR-ADDR already has a different meaning. I would like to detect when a string value changes which presumably means watching a memory address range. Currently a variable object for a string will only detect that the address has changed or the first character (the child). I see that watch expressions do the right thing in Insight, from which the variable object code has apparently been taken. Can this code be adapted for -var-create? -- Nick http://www.inet.net.nz/~nickrob