This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] linux-nat: Exploit /proc/<pid>/mem for writing
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 22 Mar 2017 10:42:38 -0400
- Subject: [binutils-gdb] linux-nat: Exploit /proc/<pid>/mem for writing
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT a379284af268ed768674e7f452ca78dad2aaaf55 ***
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Branch: master
Commit: a379284af268ed768674e7f452ca78dad2aaaf55
linux-nat: Exploit /proc/<pid>/mem for writing
So far linux_proc_xfer_partial refused to handle write requests. This is
still based on the assumption that the Linux kernel does not support
writes to /proc/<pid>/mem. That used to be true, but has changed with
Linux 2.6.39 released in May 2011.
This patch lifts this restriction and now exploits /proc/<pid>/mem for
writing to inferior memory as well, if possible.
gdb/ChangeLog:
* linux-nat.c (linux_proc_xfer_partial): Handle write operations
as well.