aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-09-29 14:24:37 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-10-10 10:44:35 -0400
commit72c4529c85907a5e1e04960ff1362a5a185553a0 (patch)
treeb7828d3aa544952ed62c4ec8833e1d7de1f0de94 /gdb/inferior.h
parent97153a2bbfc59d33c1031526e63b06725862ba6b (diff)
downloadfsf-binutils-gdb-72c4529c85907a5e1e04960ff1362a5a185553a0.zip
fsf-binutils-gdb-72c4529c85907a5e1e04960ff1362a5a185553a0.tar.gz
fsf-binutils-gdb-72c4529c85907a5e1e04960ff1362a5a185553a0.tar.bz2
gdb: move set_target_gdbarch to inferior::set_arch
set_target_gdbarch is basically a setter for the current inferior's arch, that notifies other parts of GDB of the architecture change. Move the code of set_target_gdbarch to the inferior::set_arch method. Add gdbarch_initialized_p, so we can keep the assertion. Change-Id: I276e28eafd4740c94bc5233c81a86c01b4a6ae90 Reviewed-By: John Baldwin <jhb@FreeBSD.org> Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r--gdb/inferior.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h
index 29e26a5..33eff7a 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -554,8 +554,7 @@ public:
}
/* Set this inferior's arch. */
- void set_arch (gdbarch *arch)
- { m_gdbarch = arch; }
+ void set_arch (gdbarch *arch);
/* Get this inferior's arch. */
gdbarch *arch ()