aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorTim Wiederhake <tim.wiederhake@intel.com>2017-03-21 08:19:59 +0100
committerTim Wiederhake <tim.wiederhake@intel.com>2017-03-21 08:19:59 +0100
commitcee59b3feac9a8f6300a5b788e3db4e15af2a894 (patch)
tree3ae196bdbd61797105f0c3b50c34dc8ecbc8b027 /gdb/doc
parent09220eae9df07c40d206a35e6caaecba92ab8f46 (diff)
downloadgdb-cee59b3feac9a8f6300a5b788e3db4e15af2a894.zip
gdb-cee59b3feac9a8f6300a5b788e3db4e15af2a894.tar.gz
gdb-cee59b3feac9a8f6300a5b788e3db4e15af2a894.tar.bz2
Fix break on Python 2
This changes the return type of "gdb.BtraceInstruction.data ()" from "memoryview" to "buffer" on Python 2.7 and below, similar to what "gdb.Inferior.read_memory ()" does.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/python.texi3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 1657ab8..8253cbe 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * python.texi (Recordings In Python): Document return type of
+ gdb.BtraceInstruction.data.
+
2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
* gdb.texinfo (gdb/mi Symbol Query Commands): Document new MI
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index f6ec08c..1fb8b25 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -3185,7 +3185,8 @@ if the instruction is a gap or the debug symbols could not be read.
@defvar BtraceInstruction.data
A buffer with the raw instruction data. May be @code{None} if the
-instruction is a gap.
+instruction is a gap. In Python 3, the return value is a @code{memoryview}
+object.
@end defvar
@defvar BtraceInstruction.decoded