gdb: add inferior::{arch, set_arch}
[binutils-gdb.git] / gdb / ppc-linux-tdep.c
index 784dafa59dbf31f79e409e4ec037560f107c1922..7c75bb5693d810c1eca142e389a073fee2ff88ef 100644 (file)
@@ -2080,7 +2080,7 @@ ppc_linux_displaced_step_prepare  (gdbarch *arch, thread_info *thread,
     {
       /* Figure out where the displaced step buffer is.  */
       CORE_ADDR disp_step_buf_addr
-       = linux_displaced_step_location (thread->inf->gdbarch);
+       = linux_displaced_step_location (thread->inf->arch ());
 
       per_inferior->disp_step_buf.emplace (disp_step_buf_addr);
     }