From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Kevin Buettner Cc: gdb-patches@sources.redhat.com Subject: Re: [rfc] Swap out current when creating a new architecture Date: Wed, 26 Sep 2001 23:06:00 -0000 Message-id: <3BB2C1E7.1080300@cygnus.com> References: <3BB16441.30805@cygnus.com> <1010927055546.ZM3074@ocotillo.lan> X-SW-Source: 2001-09/msg00385.html > I'm wondering though if it might be possible to set current_gdbarch > to the architecture currently getting defined. This way, it would > be possible to do things like: > > gdbarch->target_long_bit = 8; > gdbarch->target_long_long_bit = 2*TARGET_LONG_BIT; > Another option other is to rename the local variable ``gdbarch'' to ``current_gdbarch''. Check my other patch to gdbarch_alloc() which was forced to do just that. Personally, though, I'd prefer to be doing none of the above. Instead just eliminate that global current_gdbarch and parameterize everthing .... :-) enjoy, Andrew