memory address ranges (-var-create)

Nick Roberts nickrob@snap.net.nz
Sun Dec 10 22:06:00 GMT 2006


 > 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



More information about the Gdb mailing list