This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: memory address ranges (-var-create)


 > 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]