aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
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/doc
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/doc')
-rw-r--r--gdb/doc/ChangeLog6
-rw-r--r--gdb/doc/gdb.texinfo10
2 files changed, 11 insertions, 5 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 150318e..586f708 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,9 @@
+2012-06-20 Yao Qi <yao@codesourcery.com>
+
+ * gdb.texinfo (Inferiors In Python): Replace "gdb.read_memory"
+ and "gdb.write_memory" with "Inferior.read_memory" and
+ "Inferior.write_memory".
+
2012-06-15 Patrice Dumas <pertusus@free.fr> (tiny change)
* gdb.texinfo (Summary): Add a link to "Free Documentation".
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index a14e322..f7946cd 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -23890,20 +23890,20 @@ when it is called. If there are no valid threads, the method will
return an empty tuple.
@end defun
-@findex gdb.read_memory
+@findex Inferior.read_memory
@defun Inferior.read_memory (address, length)
Read @var{length} bytes of memory from the inferior, starting at
@var{address}. Returns a buffer object, which behaves much like an array
-or a string. It can be modified and given to the @code{gdb.write_memory}
-function.
+or a string. It can be modified and given to the
+@code{Inferior.write_memory} function.
@end defun
-@findex gdb.write_memory
+@findex Inferior.write_memory
@defun Inferior.write_memory (address, buffer @r{[}, length@r{]})
Write the contents of @var{buffer} to the inferior, starting at
@var{address}. The @var{buffer} parameter must be a Python object
which supports the buffer protocol, i.e., a string, an array or the
-object returned from @code{gdb.read_memory}. If given, @var{length}
+object returned from @code{Inferior.read_memory}. If given, @var{length}
determines the number of bytes from @var{buffer} to be written.
@end defun