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-tdep.c


I committed the attached.  STRUCT_OFFSET wasn't used anywhere in the
sources.

Mark


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

	* x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.

Index: x86-64-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-linux-tdep.c,v
retrieving revision 1.1
diff -u -p -r1.1 x86-64-linux-tdep.c
--- x86-64-linux-tdep.c 2001/09/21 12:19:15 1.1
+++ x86-64-linux-tdep.c 2001/09/21 22:55:49
@@ -27,9 +27,6 @@
 #include "x86-64-tdep.h"
 #include "dwarf2cfi.h"
 
-#define STRUCT_OFFSET(struct_type, member)    \
-    ((long) ((char*) &((struct_type*) 0)->member))
-
 #define LINUX_SIGTRAMP_INSN0 (0x48)	/* mov $NNNNNNNN,%rax */
 #define LINUX_SIGTRAMP_OFFSET0 (0)
 #define LINUX_SIGTRAMP_INSN1 (0x0f)	/* syscall */


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