aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-inferior.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-06-20 04:02:22 +0000
committerYao Qi <yao@codesourcery.com>2012-06-20 04:02:22 +0000
commit2678e2af1fd5f3e779f668b107ef08eda70f145a (patch)
treefa524349a5c7dd2ddefd2dbcc78852d943119d3d /gdb/python/py-inferior.c
parenta62e34ed5cb7b487a62e9c97c52c272dac6bb10c (diff)
downloadgdb-2678e2af1fd5f3e779f668b107ef08eda70f145a.zip
gdb-2678e2af1fd5f3e779f668b107ef08eda70f145a.tar.gz
gdb-2678e2af1fd5f3e779f668b107ef08eda70f145a.tar.bz2
* python/py-inferior.c: Update comments of infpy_read_memory
and infpy_write_memory. gdb/doc: * gdb.texinfo (Inferiors In Python): Replace "gdb.read_memory" and "gdb.write_memory" with "Inferior.read_memory" and "Inferior.write_memory".
Diffstat (limited to 'gdb/python/py-inferior.c')
-rw-r--r--gdb/python/py-inferior.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c
index 0ea4f55..efbf14b 100644
--- a/gdb/python/py-inferior.c
+++ b/gdb/python/py-inferior.c
@@ -392,7 +392,7 @@ gdbpy_inferiors (PyObject *unused, PyObject *unused2)
/* Membuf and memory manipulation. */
-/* Implementation of gdb.read_memory (address, length).
+/* Implementation of Inferior.read_memory (address, length).
Returns a Python buffer object with LENGTH bytes of the inferior's
memory at ADDRESS. Both arguments are integers. Returns NULL on error,
with a python exception set. */
@@ -455,7 +455,7 @@ infpy_read_memory (PyObject *self, PyObject *args, PyObject *kw)
return result;
}
-/* Implementation of gdb.write_memory (address, buffer [, length]).
+/* Implementation of Inferior.write_memory (address, buffer [, length]).
Writes the contents of BUFFER (a Python object supporting the read
buffer protocol) at ADDRESS in the inferior's memory. Write LENGTH
bytes from BUFFER, or its entire contents if the argument is not