From 7dc7c195f31657186dac0c4d6521200da11311fa Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sat, 19 Sep 2015 08:29:58 -0700 Subject: [PATCH] Replace current_inferior ()->gdbarch with its wrapper target_gdbarch. gdb/ChangeLog: * ravenscar-thread.c (ravenscar_inferior_created): Replace current_inferior ()->gdbarch with its wrapper target_gdbarch. --- gdb/ChangeLog | 5 +++++ gdb/ravenscar-thread.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4f4f048036a..6f6f9102c56 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-09-19 Doug Evans + + * ravenscar-thread.c (ravenscar_inferior_created): Replace + current_inferior ()->gdbarch with its wrapper target_gdbarch. + 2015-09-18 Doug Evans * linux-thread-db.c (record_thread): Return the created thread. diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c index ef825073a96..fe36c965882 100644 --- a/gdb/ravenscar-thread.c +++ b/gdb/ravenscar-thread.c @@ -341,7 +341,7 @@ ravenscar_inferior_created (struct target_ops *target, int from_tty) struct ravenscar_arch_ops *ops; if (!ravenscar_task_support - || gdbarch_ravenscar_ops (current_inferior ()->gdbarch) == NULL + || gdbarch_ravenscar_ops (target_gdbarch ()) == NULL || !has_ravenscar_runtime ()) return; -- 2.30.2