From 2678e2af1fd5f3e779f668b107ef08eda70f145a Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Wed, 20 Jun 2012 04:02:22 +0000 Subject: * 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". --- gdb/python/py-inferior.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/python/py-inferior.c') 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 -- cgit v1.1