This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] [0/8] Get rid of current_gdbarch
- From: Daniel Jacobowitz <drow at false dot org>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: Markus Deuling <deuling at de dot ibm dot com>, GDB Patches <gdb-patches at sourceware dot org>, Joel Brobecker <brobecker at adacore dot com>, Maxim Grigoriev <maxim at tensilica dot com>
- Date: Tue, 9 Oct 2007 14:34:24 -0400
- Subject: Re: [rfc] [0/8] Get rid of current_gdbarch
- References: <470B6819.1070903@de.ibm.com> <200710091822.l99IMjMk017593@d12av02.megacenter.de.ibm.com>
On Tue, Oct 09, 2007 at 08:22:45PM +0200, Ulrich Weigand wrote:
> At this point, there's no need to involve get_current_frame. The
> routine operates on the current regcache, and should simply consult
> its architecture.
As a more general note, replacing one global state with another is of
limited value. It's not completely useless, but let's avoid it when
we can :-)
--
Daniel Jacobowitz
CodeSourcery