This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Unreviewed patch


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]