From: Daniel Jacobowitz <drow@false.org>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: gdb@sources.redhat.com
Subject: Re: memory address ranges (-var-create)
Date: Mon, 11 Dec 2006 02:31:00 -0000 [thread overview]
Message-ID: <20061211023136.GA11647@nevyn.them.org> (raw)
In-Reply-To: <17788.33737.735764.296688@kahikatea.snap.net.nz>
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
next prev parent reply other threads:[~2006-12-11 2:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-10 20:45 Nick Roberts
2006-12-10 20:53 ` Daniel Jacobowitz
2006-12-10 22:06 ` Nick Roberts
2006-12-11 2:31 ` Daniel Jacobowitz [this message]
2006-12-11 21:50 ` Nick Roberts
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061211023136.GA11647@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=nickrob@snap.net.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox