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: -var-update using formatted value


On Fri, Jan 11, 2008 at 10:41:19PM -0500, Marc Khouzam wrote:
> For example, in your example of strings changing from 
> natural value: 0x804a018 "GNU" to
> natural value: 0x804a018 "GDB"
> If the variable object tracking this has its format set to anything else than natural,
> the actual string is not printed and the value seems to stay the same so
> -var-update will not detect the change in value.

That is deliberate.  I reread your message, and I still can't see a
good reason for -var-update to report a changed variable if
-var-evaluate-expression is going to continue to display it the same
way, i.e. as if no update has occurred.  If you're worried about
multiple formats, maybe you should keep a varobj for each instead of
switching one around?

-- 
Daniel Jacobowitz
CodeSourcery


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