This is the mail archive of the gdb@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]
Other format: [Raw text]

remove enum from ppc-linux-tdep.c


Hi,

this patch uses the defines from asm/elf.h instead of the hardcoded
values. Would that have any bad side effects? asm-ppc64 includes elf.h
via sigcontext.h and that will result in a syntax error.

Index: ppc-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-linux-tdep.c,v
retrieving revision 1.22
diff -u -p -r1.22 ppc-linux-tdep.c
--- ppc-linux-tdep.c    4 Jan 2003 23:38:45 -0000       1.22
+++ ppc-linux-tdep.c    26 Jan 2003 19:15:27 -0000
@@ -36,6 +36,8 @@
 #include "solib-svr4.h"
 #include "ppc-tdep.h"

+#include "<asm/elf.h>"
+
 /* The following two instructions are used in the signal trampoline
    code on GNU/Linux PPC.  */
 #define INSTR_LI_R0_0x7777     0x38007777
@@ -607,12 +609,6 @@ ppc_linux_svr4_fetch_link_map_offsets (v

   return lmp;
 }
-
-enum {
-  ELF_NGREG = 48,
-  ELF_NFPREG = 33,
-  ELF_NVRREG = 33
-};

 enum {
   ELF_GREGSET_SIZE = (ELF_NGREG * 4),


-- 
A: No.
Q: Should I include quotations after my reply?


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