diff options
author | Daniel Jacobowitz <drow@false.org> | 2002-11-26 01:23:46 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2002-11-26 01:23:46 +0000 |
commit | eb78484829c67075caaa4ac984dd8b50b5d750bc (patch) | |
tree | 5d1c675cdefdc0b97a2387453702bcb940af80f9 /gdb/lin-lwp.c | |
parent | afbfa4076a55445d5e61f5c872b438d1ea997aeb (diff) | |
download | gdb-eb78484829c67075caaa4ac984dd8b50b5d750bc.zip gdb-eb78484829c67075caaa4ac984dd8b50b5d750bc.tar.gz gdb-eb78484829c67075caaa4ac984dd8b50b5d750bc.tar.bz2 |
* acconfig.h (HAVE_PREAD64): Add.
* configure.in: Check for pread64.
* config.in: Regenerated.
* configure: Regenerated.
* lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
* linux-proc.c (linux_proc_xfer_memory): New function.
* config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
Diffstat (limited to 'gdb/lin-lwp.c')
-rw-r--r-- | gdb/lin-lwp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/lin-lwp.c b/gdb/lin-lwp.c index 4b9d57d..88a10d8 100644 --- a/gdb/lin-lwp.c +++ b/gdb/lin-lwp.c @@ -1380,7 +1380,9 @@ lin_lwp_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, if (is_lwp (inferior_ptid)) inferior_ptid = pid_to_ptid (GET_LWP (inferior_ptid)); - xfer = child_xfer_memory (memaddr, myaddr, len, write, attrib, target); + xfer = linux_proc_xfer_memory (memaddr, myaddr, len, write, attrib, target); + if (xfer == 0) + xfer = child_xfer_memory (memaddr, myaddr, len, write, attrib, target); do_cleanups (old_chain); return xfer; |