memory address ranges (-var-create)

Daniel Jacobowitz drow@false.org
Mon Dec 11 02:31:00 GMT 2006


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



More information about the Gdb mailing list