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]

memory address ranges (-var-create)


For

   -var-create - * EXPRESSION

the manual says EXPRESSION may be:

   * `*ADDR-ADDR' -- a memory address range (TBD)

but the expression takes the value at the first address and subtracts the
second.  TBD is a bit ambiguous but perhaps it means "to be done" rather
that "to be decided".  In any case if -var-create parses an expression like
"print" or "break" does then it can't work as it stands as *ADDR-ADDR
already has a different meaning.

I would like to detect when a string value changes which presumably means
watching a memory address range.  Currently a variable object for a string
will only detect that the address has changed or the first character
(the child).  

I see that watch expressions do the right thing in Insight, from which the
variable object code has apparently been taken.  Can this code be adapted
for -var-create?


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