From: Olaf Hering <olh@suse.de>
To: gdb@sources.redhat.com, Will Schmidt <willschm@us.ibm.com>
Subject: remove enum from ppc-linux-tdep.c
Date: Sun, 26 Jan 2003 19:21:00 -0000 [thread overview]
Message-ID: <20030126192055.GA22537@suse.de> (raw)
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?
next reply other threads:[~2003-01-26 19:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-26 19:21 Olaf Hering [this message]
2003-01-26 19:30 ` Daniel Jacobowitz
2003-01-26 19:38 ` Olaf Hering
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030126192055.GA22537@suse.de \
--to=olh@suse.de \
--cc=gdb@sources.redhat.com \
--cc=willschm@us.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox