This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Replace current_inferior ()->gdbarch with its wrapper target_gdbarch.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7dc7c195f31657186dac0c4d6521200da11311fa

commit 7dc7c195f31657186dac0c4d6521200da11311fa
Author: Doug Evans <xdje42@gmail.com>
Date:   Sat Sep 19 08:29:58 2015 -0700

    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.

Diff:
---
 gdb/ChangeLog          | 5 +++++
 gdb/ravenscar-thread.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4f4f048..6f6f910 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-19  Doug Evans  <xdje42@gmail.com>
+
+	* ravenscar-thread.c (ravenscar_inferior_created): Replace
+	current_inferior ()->gdbarch with its wrapper target_gdbarch.
+
 2015-09-18  Doug Evans  <xdje42@gmail.com>
 
 	* linux-thread-db.c (record_thread): Return the created thread.
diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c
index ef82507..fe36c96 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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]