This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Remove junk from x86-64-linux-tdep.c
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH] Remove junk from x86-64-linux-tdep.c
- From: Mark Kettenis <kettenis at wins dot uva dot nl>
- Date: Sat, 22 Sep 2001 00:57:59 +0200
- CC: jiri at suse dot cz
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 */