From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6892 invoked by alias); 19 Oct 2006 20:00:37 -0000 Received: (qmail 6884 invoked by uid 22791); 19 Oct 2006 20:00:36 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 19 Oct 2006 20:00:30 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 9A24648CFEF for ; Thu, 19 Oct 2006 16:00:28 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19576-01-5 for ; Thu, 19 Oct 2006 16:00:28 -0400 (EDT) Received: from takamaka.act-europe.fr (joel.gnat.com [205.232.38.116]) by nile.gnat.com (Postfix) with ESMTP id 3FD5848CF7F for ; Thu, 19 Oct 2006 16:00:28 -0400 (EDT) Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 1B8D547F01; Thu, 19 Oct 2006 16:00:28 -0400 (EDT) Date: Thu, 19 Oct 2006 20:00:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: Re: RFC: A change to the way we initialize new gdbarches Message-ID: <20061019200028.GB1225@adacore.com> References: <20061004231025.GA9687@nevyn.them.org> <200610052006.k95K69UK024656@elgar.sibelius.xs4all.nl> <20061005202536.GA10876@nevyn.them.org> <20061018204802.GA20757@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061018204802.GA20757@nevyn.them.org> User-Agent: Mutt/1.4i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00246.txt.bz2 > 2006-10-18 Daniel Jacobowitz > > * arch-utils.c (target_byte_order_user): Renamed from > target_byte_order. > (target_byte_order_auto, selected_byte_order): Removed. > (show_endian): Check target_byte_order_user. > (set_endian): Always update the architecture. Set > target_byte_order_user after success. > (target_architecture_auto): Removed. > (target_architecture_user): New. > (selected_architecture_name, show_architecture): Check it. > (set_architecture): Set target_architecture_user after success. > (gdbarch_from_bfd): Check the argument. > (default_byte_order): New. > (initialize_current_architecture): Set the global default > architecture and endianness. > (gdbarch_info_fill): Remove GDBARCH argument. Do not check the > previous architecture. Use exec_bfd, global selected architecture > and endianness, and global defaults. > * arch-utils.h (selected_byte_order): Remove prototype. > (gdbarch_info_fill): Update. > * exec.c (exec_file_attach): Update the architecture after removing > the current file. > * gdbarch.sh: Update comments. > (find_arch_by_info): Remove OLD_GDBARCH argument. Update call to > gdbarch_info_fill. > (gdbarch_find_by_info): Update call to find_arch_by_info. > * gdbarch.h, gdbarch.c: Regenerated. > * remote-sim.c (gdbsim_open): Use TARGET_BYTE_ORDER. FWIW, I had a look a this change. I like the approach. -- Joel