aboutsummaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-10-16 01:58:07 +0000
committerAndrew Cagney <cagney@redhat.com>2001-10-16 01:58:07 +0000
commit1aa20aa88f25187a6947acc8d8ccaeb97daaa4d0 (patch)
treeee454a018ac2871270bbca8caaabe9a2722481a2 /gdb/values.c
parentdbbd9c57ff004955375f214b66a29cd0abf101fd (diff)
downloadgdb-1aa20aa88f25187a6947acc8d8ccaeb97daaa4d0.zip
gdb-1aa20aa88f25187a6947acc8d8ccaeb97daaa4d0.tar.gz
gdb-1aa20aa88f25187a6947acc8d8ccaeb97daaa4d0.tar.bz2
* value.h (value_as_address): Rename value_as_pointer.
* eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c, jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c, values.c: Update.
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/values.c b/gdb/values.c
index bf032af..eedeaf9 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -561,7 +561,7 @@ value_as_double (register value_ptr val)
Note that val's type may not actually be a pointer; value_as_long
handles all the cases. */
CORE_ADDR
-value_as_pointer (value_ptr val)
+value_as_address (value_ptr val)
{
/* Assume a CORE_ADDR can fit in a LONGEST (for now). Not sure
whether we want this to be true eventually. */
@@ -723,7 +723,7 @@ unpack_double (struct type *type, char *valaddr, int *invp)
host byte order.
If you want functions and arrays to be coerced to pointers, and
- references to be dereferenced, call value_as_pointer() instead.
+ references to be dereferenced, call value_as_address() instead.
C++: It is assumed that the front-end has taken care of
all matters concerning pointers to members. A pointer
@@ -993,7 +993,7 @@ value_headof (value_ptr in_arg, struct type *btype, struct type *dtype)
/* Turn vtable into typeinfo function */
VALUE_OFFSET(vtbl)+=4;
- msymbol = lookup_minimal_symbol_by_pc ( value_as_pointer(value_ind(vtbl)) );
+ msymbol = lookup_minimal_symbol_by_pc ( value_as_address(value_ind(vtbl)) );
if (msymbol == NULL
|| (demangled_name = SYMBOL_NAME (msymbol)) == NULL)
{