This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] setting the raw content of a register
My two cents:
One of the concerns I have with the current discussion centering around
using the expression parser is that the syntax would then be language-
sensitive, or might not even be implemented/able in certain languages
at all. I can be a number of scenarios where that becomes a pain
for the user (assuming said user was able to find the right incantation
at all).
Also, I tend to think that the "{TYPE} VAL " expression is a little
obscure to be found easily by someone searching for a way to assign
a raw value to an object. And to widen the discussion, I have always
thought that relying on language expression assignment to change the
value of some variables or even some memory has always been a PIA, and
I would have welcomed a dedicated command to do that.
So, I understand the desire to widen the discussion to find a way
to change the raw value of any object, not just registers, but
I would really prefer in this instance that it did not rely on
pure expression evaluation.
--
Joel