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]

[PATCH] Remove junk from x86-64-linux-nat.c


Jiri,

It looks as if some unecessary junk ended up in the x86-64-linux-nat.c
you checked in.  Is it OK if I check in the attached patch?  I haven't
tested it, but it looks pretty obvious to me.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* x86-64-linux-nat.c (offsetoff, debug_control_mirror,
	address_lookup): Removed.

Index: x86-64-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-linux-nat.c,v
retrieving revision 1.1
diff -u -p -r1.1 x86-64-linux-nat.c
--- x86-64-linux-nat.c 2001/09/21 12:19:15 1.1
+++ x86-64-linux-nat.c 2001/09/21 22:42:57
@@ -546,16 +546,6 @@ static struct core_fns linux_elf_core_fn
 };
 
 
-#if !defined (offsetof)
-#define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER)
-#endif
-
-/* Record the value of the debug control register.  */
-static long debug_control_mirror;
-
-/* Record which address associates with which register.  */
-static CORE_ADDR address_lookup[DR_LASTADDR - DR_FIRSTADDR + 1];
-
 void
 _initialize_x86_64_linux_nat (void)
 {


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