This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Eliminate gdb_print_insn_x86_64
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 13 Apr 2003 15:33:55 +0200 (CEST)
- Subject: [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