This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[rfc] [02/09] Get rid of current_gdbarch (macros in xtensa target)
- From: Markus Deuling <deuling at de dot ibm dot com>
- To: GDB Patches <gdb-patches at sourceware dot org>
- Cc: Ulrich Weigand <uweigand at de dot ibm dot com>
- Date: Mon, 05 Nov 2007 13:21:24 +0100
- Subject: [rfc] [02/09] Get rid of current_gdbarch (macros in xtensa target)
Hi,
this patches removes two macros SIZEOF_GREGSET and XTENSA_ELF_NGREG from xtensa-tdep.h. These two
macros are unused.
Tested by gdb_mbuild. Is this ok to commit?
ChangeLog:
* xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG): Remove.
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
diff -urpN src/gdb/xtensa-tdep.h dev/gdb/xtensa-tdep.h
--- src/gdb/xtensa-tdep.h 2007-10-09 21:54:04.000000000 +0200
+++ dev/gdb/xtensa-tdep.h 2007-11-05 06:05:19.000000000 +0100
@@ -105,9 +105,6 @@ typedef struct
xtensa_elf_greg_t ar[0]; /* variable size (per config). */
} xtensa_elf_gregset_t;
-#define SIZEOF_GREGSET (sizeof (xtensa_elf_gregset_t) + gdbarch_tdep (current_gdbarch)->num_aregs * 4)
-#define XTENSA_ELF_NGREG (SIZEOF_GREGSET / sizeof(xtensa_elf_greg_t))
-
/* Mask. */