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 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)
 {


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