[patch] s/value_as_pointer/value_as_address/

Andrew Cagney ac131313@cygnus.com
Fri Sep 21 20:25:00 GMT 2001


Hello,

The attached patch renames the function value_as_pointer() to
value_as_address().  This is to make the function name consistent with
both its semantics and its documentation.  The good old days when you
could assume pointer == address have long gone.

I should note that there is a recripical function value_from_pointer().
For the moment I'm leaving that be.  That function converts the
address into a `struct value' containing a target pointer rather than a
`struct value' containing the full value of the address.  I suspect GDB
needs both but that is another story. [:-)]

Assuming no one raises a problem with this over the next few days I'll
commit it to the trunk.

enjoy,
Andrew





More information about the Gdb-patches mailing list