diff options
author | Doug Evans <xdje42@gmail.com> | 2015-09-19 08:29:58 -0700 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2015-09-19 08:29:58 -0700 |
commit | 7dc7c195f31657186dac0c4d6521200da11311fa (patch) | |
tree | a686691eef1550b5006d7358788ab0aaa5e12ef9 /gdb | |
parent | be550b6ed9d6c5948d2c331a396020769f65204f (diff) | |
download | gdb-7dc7c195f31657186dac0c4d6521200da11311fa.zip gdb-7dc7c195f31657186dac0c4d6521200da11311fa.tar.gz gdb-7dc7c195f31657186dac0c4d6521200da11311fa.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/ravenscar-thread.c | 2 |
2 files changed, 6 insertions, 1 deletions
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; |