Re: memory address ranges (-var-create)

Nick Roberts
2006-12-10T22:06:20Z

> 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?