linux-nat: Exploit /proc/<pid>/mem for writing
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 14 Mar 2017 10:14:49 +0000 (11:14 +0100)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 14 Mar 2017 10:14:49 +0000 (11:14 +0100)
commita379284af268ed768674e7f452ca78dad2aaaf55
treec3d998b0fb90042f7f4b2617b99985555c62a392
parent8a6200ba863f207d93467312431d107f50f0e2ab
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.
gdb/ChangeLog
gdb/linux-nat.c
This page took 0.026063 seconds and 4 git commands to generate.