aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-09-29 14:24:35 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-10-10 10:44:35 -0400
commit27b1f19f8f5cc46faba4bb2142547df074a82a29 (patch)
tree732d6d243fc7f90780e2a7b469cf9e97990d47f4 /gdb/value.c
parentae0d827fa483c4e569803d99f8dff14794c63a17 (diff)
downloadbinutils-27b1f19f8f5cc46faba4bb2142547df074a82a29.zip
binutils-27b1f19f8f5cc46faba4bb2142547df074a82a29.tar.gz
binutils-27b1f19f8f5cc46faba4bb2142547df074a82a29.tar.bz2
gdb: add inferior::{arch, set_arch}
Make the inferior's gdbarch field private, and add getters and setters. This helped me by allowing putting breakpoints on set_arch to know when the inferior's arch was set. A subsequent patch in this series also adds more things in set_arch. Change-Id: I0005bd1ef4cd6b612af501201cec44e457998eec Reviewed-By: John Baldwin <jhb@FreeBSD.org> Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 1cc3262..1908874 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -4222,7 +4222,7 @@ test_insert_into_bit_range_vector ()
static void
test_value_copy ()
{
- type *type = builtin_type (current_inferior ()->gdbarch)->builtin_int;
+ type *type = builtin_type (current_inferior ()->arch ())->builtin_int;
/* Verify that we can copy an entirely optimized out value, that may not have
its contents allocated. */