This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Unreviewed patch
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 11 Sep 2002 18:15:03 +0930
- Subject: Unreviewed patch
- References: <OFDCB00E28.6E375794-ON85256C23.005724F9@torolab.ibm.com> <20020829092527.I18764@bubble.sa.bigpond.net.au> <20020829123940.J18764@bubble.sa.bigpond.net.au>
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