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]

[PATCH] Eliminate gdb_print_insn_x86_64


More dead wood.  Disassembling is properly handled by i386_print_insn().

Committed as obvious.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis at gnu dot org>
 
	* x86-64-tdep.c (gdb_print_insn_x86_64): Removed.

Index: x86-64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-tdep.c,v
retrieving revision 1.65
diff -u -p -r1.65 x86-64-tdep.c
--- x86-64-tdep.c 13 Apr 2003 12:32:02 -0000 1.65
+++ x86-64-tdep.c 13 Apr 2003 13:10:12 -0000
@@ -828,23 +828,6 @@ x86_64_register_number (const char *name
 }
 
 
-
-/* We have two flavours of disassembly.  The machinery on this page
-   deals with switching between those.  */
-
-static int
-gdb_print_insn_x86_64 (bfd_vma memaddr, disassemble_info * info)
-{
-  if (disassembly_flavour == att_flavour)
-    return print_insn_i386_att (memaddr, info);
-  else if (disassembly_flavour == intel_flavour)
-    return print_insn_i386_intel (memaddr, info);
-  /* Never reached -- disassembly_flavour is always either att_flavour
-     or intel_flavour.  */
-  internal_error (__FILE__, __LINE__, "failed internal consistency check");
-}
-
-
 /* Store the address of the place in which to copy the structure the
    subroutine will return.  This is called from call_function. */
 void


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