From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23432 invoked by alias); 11 Dec 2006 02:31:48 -0000 Received: (qmail 23421 invoked by uid 22791); 11 Dec 2006 02:31:45 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 11 Dec 2006 02:31:40 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1Gtax6-00032E-WF; Sun, 10 Dec 2006 21:31:37 -0500 Date: Mon, 11 Dec 2006 02:31:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: gdb@sources.redhat.com Subject: Re: memory address ranges (-var-create) Message-ID: <20061211023136.GA11647@nevyn.them.org> Mail-Followup-To: Nick Roberts , gdb@sources.redhat.com References: <17788.28864.16294.719219@kahikatea.snap.net.nz> <20061210205314.GA2660@nevyn.them.org> <17788.33737.735764.296688@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17788.33737.735764.296688@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.13 (2006-08-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: 2006-12/txt/msg00080.txt.bz2 On Mon, Dec 11, 2006 at 11:01:45AM +1300, Nick Roberts wrote: > > 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. Doesn't it have to anyway? I don't know how strings work in MI. > > 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? I have no idea; I don't know how the Insight bits work/worked. Sorry. -- Daniel Jacobowitz CodeSourcery