This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Eliminate x86_64_breakpoint_from_pc
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 13 Apr 2003 14:33:17 +0200 (CEST)
- Subject: [PATCH] Eliminate x86_64_breakpoint_from_pc
This removes some dead code (the i386 version of this function is
identical and already used on the x86_64).
Committed as obvious.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis at gnu dot org>
* x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
Index: x86-64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-tdep.c,v
retrieving revision 1.64
diff -u -p -r1.64 x86-64-tdep.c
--- x86-64-tdep.c 11 Apr 2003 18:15:39 -0000 1.64
+++ x86-64-tdep.c 13 Apr 2003 12:31:25 -0000
@@ -923,15 +923,6 @@ x86_64_skip_prologue (CORE_ADDR pc)
return pc;
}
-/* Sequence of bytes for breakpoint instruction. */
-static const unsigned char *
-x86_64_breakpoint_from_pc (CORE_ADDR *pc, int *lenptr)
-{
- static unsigned char breakpoint[] = { 0xcc };
- *lenptr = 1;
- return breakpoint;
-}
-
static void
x86_64_save_dummy_frame_tos (CORE_ADDR sp)
{