From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15044 invoked by alias); 11 Sep 2002 08:45:12 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 15030 invoked from network); 11 Sep 2002 08:45:09 -0000 Received: from unknown (HELO mta02bw.bigpond.com) (139.134.6.34) by sources.redhat.com with SMTP; 11 Sep 2002 08:45:09 -0000 Received: from bubble.local ([144.135.24.84]) by mta02bw.bigpond.com (Netscape Messaging Server 4.15 mta02bw May 23 2002 23:53:28) with SMTP id H29MZ400.C6I for ; Wed, 11 Sep 2002 18:45:04 +1000 Received: from CPE-144-136-184-138.sa.bigpond.net.au ([144.136.184.138]) by bwmam06.mailsvc.email.bigpond.com(MailRouter V3.0n 53/3729978); 11 Sep 2002 18:45:04 Received: (qmail 19309 invoked by uid 179); 11 Sep 2002 08:45:03 -0000 Date: Wed, 11 Sep 2002 01:45:00 -0000 From: Alan Modra To: gdb-patches@sources.redhat.com Subject: Unreviewed patch Message-ID: <20020911181503.U8357@bubble.sa.bigpond.net.au> References: <20020829092527.I18764@bubble.sa.bigpond.net.au> <20020829123940.J18764@bubble.sa.bigpond.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020829123940.J18764@bubble.sa.bigpond.net.au>; from amodra@bigpond.net.au on Thu, Aug 29, 2002 at 12:39:40PM +0930 X-SW-Source: 2002-09/txt/msg00178.txt.bz2 I had a gdb patch buried in http://sources.redhat.com/ml/gdb-patches/2002-08/msg00964.html but apparently it was buried too deeply. Here's a revised version, that also removes the silly bfd_lookup_arch call. gdb/ChangeLog * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded mach constants. It's almost obvious, but I'm asking for permission to apply.. Index: gdb/x86-64-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/x86-64-tdep.c,v retrieving revision 1.26 diff -u -p -r1.26 x86-64-tdep.c --- gdb/x86-64-tdep.c 24 Aug 2002 00:21:35 -0000 1.26 +++ gdb/x86-64-tdep.c 29 Aug 2002 02:49:08 -0000 @@ -1144,7 +1144,7 @@ _initialize_x86_64_tdep (void) } tm_print_insn = gdb_print_insn_x86_64; - tm_print_insn_info.mach = bfd_lookup_arch (bfd_arch_i386, 3)->mach; + tm_print_insn_info.mach = bfd_mach_x86_64; /* Add the variable that controls the disassembly flavour. */ { -- Alan Modra IBM OzLabs - Linux Technology Centre