aboutsummaryrefslogtreecommitdiff
path: root/gdb/p-valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 12:27:30 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:21:07 -0700
commit9feb2d07debe7d04a33cbd90f895d529b7a04f41 (patch)
treee888b8d28f7cc96be1c72adb5bc593f5297859af /gdb/p-valprint.c
parent8e5b19ad992b56cb3817dcbd4c656e2ffc3ee889 (diff)
downloadgdb-9feb2d07debe7d04a33cbd90f895d529b7a04f41.zip
gdb-9feb2d07debe7d04a33cbd90f895d529b7a04f41.tar.gz
gdb-9feb2d07debe7d04a33cbd90f895d529b7a04f41.tar.bz2
Turn value_address and set_value_address functions into methods
This changes the value_address and set_value_address functions to be methods of value. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/p-valprint.c')
-rw-r--r--gdb/p-valprint.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c
index 2628ebd..c6b9b55 100644
--- a/gdb/p-valprint.c
+++ b/gdb/p-valprint.c
@@ -143,7 +143,7 @@ pascal_language::value_print_inner (struct value *val,
break;
}
/* Array of unspecified length: treat like pointer to first elt. */
- addr = value_address (val);
+ addr = val->address ();
}
goto print_unpacked_pointer;
@@ -748,7 +748,7 @@ pascal_object_print_value (struct value *val, struct ui_file *stream,
if (boffset < 0 || boffset >= type->length ())
{
- CORE_ADDR address= value_address (val);
+ CORE_ADDR address= val->address ();
gdb::byte_vector buf (baseclass->length ());
if (target_read_memory (address + boffset, buf.data (),
@@ -836,7 +836,7 @@ pascal_object_print_static_field (struct value *val,
while (--i >= 0)
{
- if (value_address (val) == first_dont_print[i])
+ if (val->address () == first_dont_print[i])
{
fputs_styled (_("\
<same as static member of an already seen type>"),
@@ -845,7 +845,7 @@ pascal_object_print_static_field (struct value *val,
}
}
- addr = value_address (val);
+ addr = val->address ();
obstack_grow (&dont_print_statmem_obstack, (char *) &addr,
sizeof (CORE_ADDR));