* linux-proc.c (linux_proc_xfer_memory): Remove comment about
CFLAGS games to reflect reality.
This commit is contained in:
parent
42cf1509a7
commit
6564f77d9d
|
@ -1,3 +1,8 @@
|
||||||
|
2003-08-24 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* linux-proc.c (linux_proc_xfer_memory): Remove comment about
|
||||||
|
CFLAGS games to reflect reality.
|
||||||
|
|
||||||
2003-08-24 Andrew Cagney <cagney@redhat.com>
|
2003-08-24 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
* arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
|
* arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
|
||||||
|
|
|
@ -592,11 +592,7 @@ linux_proc_xfer_memory (CORE_ADDR addr, char *myaddr, int len, int write,
|
||||||
/* If pread64 is available, use it. It's faster if the kernel
|
/* If pread64 is available, use it. It's faster if the kernel
|
||||||
supports it (only one syscall), and it's 64-bit safe even
|
supports it (only one syscall), and it's 64-bit safe even
|
||||||
on 32-bit platforms (for instance, SPARC debugging a SPARC64
|
on 32-bit platforms (for instance, SPARC debugging a SPARC64
|
||||||
application).
|
application). */
|
||||||
|
|
||||||
We play some autoconf and CFLAGS games to get this declaration
|
|
||||||
exposed: -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE. And then
|
|
||||||
a -D_BSD_SOURCE to counteract the defaults for _XOPEN_SOURCE. */
|
|
||||||
#ifdef HAVE_PREAD64
|
#ifdef HAVE_PREAD64
|
||||||
if (pread64 (fd, myaddr, len, addr) != len)
|
if (pread64 (fd, myaddr, len, addr) != len)
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue