This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Remove only use of current_inferior ()->gdbarch outside of gdbarch.*
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: xdje42 at gmail dot com (Doug Evans)
- Cc: gdb-patches at sourceware dot org (gdb-patches at sourceware dot org)
- Date: Fri, 28 Aug 2015 19:21:56 +0200 (CEST)
- Subject: Re: [PATCH] Remove only use of current_inferior ()->gdbarch outside of gdbarch.*
- Authentication-results: sourceware.org; auth=none
Doug Evans wrote:
> On Thu, Aug 27, 2015 at 10:15 PM, Doug Evans <xdje42@gmail.com> wrote:
> > 2015-08-27 Doug Evans <xdje42@gmail.com>
> >
> > * ravenscar-thread.c (ravenscar_inferior_created): Replace
> > current_inferior ()->gdbarch with its wrapper target_gdbarch.
Just as a quick comment: this goes exactly into the opposite direction
from what we discussed in the other thread. I think we should replace
target_gdbarch () with current_inferior ()->gdbarch *everywhere*,
instead of reverting that here ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com