forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user