This is the mail archive of the gdb-patches@sourceware.org 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]

[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.  */
 





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