This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: bug report - May 4th snapshot
- To: 3diff at flib dot gnu dot ai dot mit dot edu
- Subject: Re: bug report - May 4th snapshot
- From: Mark Kettenis <kettenis at wins dot uva dot nl>
- Date: Thu, 4 May 2000 21:12:58 +0200
- CC: gdb-patches at sourceware dot cygnus dot com
- References: <200005041813.OAA02812@flib.gnu.ai.mit.edu>
Date: Thu, 4 May 2000 14:13:57 -0400
From: Brian Youmans <3diff@flib.gnu.ai.mit.edu>
I downloaded the snapshot pretty much so that I could
get the latest manual version. I decided to configure
and make the programs, and the compile on delysid.gnu.org
failed with the following messages:
i386-linux-nat.c: In function `fetch_register':
i386-linux-nat.c:167: `PT_READ_U' undeclared (first use this function)
i386-linux-nat.c:167: (Each undeclared identifier is reported only once
i386-linux-nat.c:167: for each function it appears in.)
i386-linux-nat.c: In function `store_register':
i386-linux-nat.c:234: `PT_WRITE_U' undeclared (first use this function)
make[1]: *** [i386-linux-nat.o] Error 1
make[1]: Leaving directory `/gnu/fsf/fsf/3diff/gdb+dejagnu-20000504/gdb'
make: *** [all-gdb] Error 2
bash-2.02$ uname -a
Linux delysid.gnu.org 2.0.30 #16 Sun Aug 31 16:17:13 EDT 1997 i486
Just thought I would send in a report...
Thanks Brian,
Looks like I overlooked something when a made GDB work on Linux 2.0
again. My system is too modern too notice :-(.
Here's a patch, of course this will be in the 5.0 release.
[ To the people on gdb-patches: I'll check this in on both branches ]
Mark
2000-05-04 Mark Kettenis <kettenis@gnu.org>
* i386-linux-nat.c: Define PT_READ_U and PT_WRITE_U if they're not
already defined.
Index: i386-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-linux-nat.c,v
retrieving revision 1.9
diff -u -p -r1.9 i386-linux-nat.c
--- i386-linux-nat.c 2000/04/02 20:16:28 1.9
+++ i386-linux-nat.c 2000/05/04 19:08:18
@@ -123,6 +123,13 @@ int have_ptrace_getxfpregs =
the GETREGS request. I want to avoid changing `infptrace.c' right
now. */
+#ifndef PT_READ_U
+#define PT_READ_U PTRACE_PEEKUSR
+#endif
+#ifndef PT_WRITE_U
+#define PT_WRITE_U PTRACE_POKEUSR
+#endif
+
/* Default the type of the ptrace transfer to int. */
#ifndef PTRACE_XFER_TYPE
#define PTRACE_XFER_TYPE int