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



> If I change the format to hexadecimal, 11 -> 0xb say, the display should
> change, so I would like GDB to report it through -var-update.

Can you elaborate?  When do you call var-update in this case?  Is it right after
the var-set-format?

> I don't use -var-evaluate-expression for current GDB.

So how to you display a value in a different format (say hex)? You must
be calling -var-update right away after the set-format.  That is why I thought 
"-var-set-format --all-values var1 hex" 
would return the value in hex (or whatever format specified).
I'd use this too, as I wouldn't need to call evaluate-expression after
var-set-format.

Then, you could say var-evaluate-expression is superfluous (I think).


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