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)


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


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