From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 573 invoked by alias); 10 Dec 2006 22:06:20 -0000 Received: (qmail 565 invoked by uid 22791); 10 Dec 2006 22:06:19 -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 22:06:14 +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 6682C3D808F; Mon, 11 Dec 2006 11:07:25 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 91744BE3F2; Mon, 11 Dec 2006 11:01:50 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17788.33737.735764.296688@kahikatea.snap.net.nz> Date: Sun, 10 Dec 2006 22:06:00 -0000 To: Daniel Jacobowitz Cc: gdb@sources.redhat.com Subject: Re: memory address ranges (-var-create) In-Reply-To: <20061210205314.GA2660@nevyn.them.org> References: <17788.28864.16294.719219@kahikatea.snap.net.nz> <20061210205314.GA2660@nevyn.them.org> 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/msg00078.txt.bz2 > Would it work for your front end to create a varobj for "(char[7] *) > str" where it computes the length itself? > > (gdb) p *(char[7] *) rl_prompt > $13 = "(gdb) " That creates a child for each character, right? I guess then the front end would have to put them all together again to form a string. > If that's what you want, we might be able to come up with a smarter way > to handle the special string case, or do it automatically. Insight seems to work even if you increase the length of the string with realloc. Could it handle this case too? -- Nick http://www.inet.net.nz/~nickrob