Fix break on Python 2
authorTim Wiederhake <tim.wiederhake@intel.com>
Tue, 21 Mar 2017 07:19:59 +0000 (08:19 +0100)
committerTim Wiederhake <tim.wiederhake@intel.com>
Tue, 21 Mar 2017 07:19:59 +0000 (08:19 +0100)
commitcee59b3feac9a8f6300a5b788e3db4e15af2a894
tree3ae196bdbd61797105f0c3b50c34dc8ecbc8b027
parent09220eae9df07c40d206a35e6caaecba92ab8f46
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.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/python.texi
gdb/python/py-record-btrace.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-record-btrace.exp