aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorTim Wiederhake <tim.wiederhake@intel.com>2017-05-02 11:35:54 +0200
committerTim Wiederhake <tim.wiederhake@intel.com>2017-05-02 11:35:54 +0200
commit0ed5da759e34c6e85cb2a9ea0fdc7b680f897a81 (patch)
tree000c644a869a37c6debaccc141ed58f1e9c109bf /gdb/doc
parent913aeadd9d6b8bdea5131b16dc7ede395097656d (diff)
downloadgdb-0ed5da759e34c6e85cb2a9ea0fdc7b680f897a81.zip
gdb-0ed5da759e34c6e85cb2a9ea0fdc7b680f897a81.tar.gz
gdb-0ed5da759e34c6e85cb2a9ea0fdc7b680f897a81.tar.bz2
Python: Move and rename gdb.BtraceInstruction
Remove gdb.BtraceInstruction and replace by gdb.RecordInstruction.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/python.texi21
2 files changed, 14 insertions, 12 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 202fbe3..1c43951 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,10 @@
2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
+ * python.texi (Recording in Python): Replace gdb.BtraceInstruction with
+ gdb.RecordInstruction
+
+2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
+
* python.texi (Recording in Python): Add documentation for
gdb.RecordGap and remove documentation of special cases for
gdb.BtraceInstruction.
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index 828806a..84fe7d5 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -3149,41 +3149,38 @@ A @code{gdb.Record} object has the following methods:
Move the replay position to the given @var{instruction}.
@end defun
-The attributes and methods of instruction objects depend on the current
-recording method. Currently, only btrace instructions are supported.
+A @code{gdb.RecordInstruction} object has the following attributes:
-A @code{gdb.BtraceInstruction} object has the following attributes:
-
-@defvar BtraceInstruction.number
+@defvar RecordInstruction.number
An integer identifying this instruction. @var{number} corresponds to
the numbers seen in @code{record instruction-history}
(@pxref{Process Record and Replay}).
@end defvar
-@defvar BtraceInstruction.sal
+@defvar RecordInstruction.sal
A @code{gdb.Symtab_and_line} object representing the associated symtab
and line of this instruction. May be @code{None} if no debug information is
available.
@end defvar
-@defvar BtraceInstruction.pc
+@defvar RecordInstruction.pc
An integer representing this instruction's address.
@end defvar
-@defvar BtraceInstruction.data
+@defvar RecordInstruction.data
A buffer with the raw instruction data. In Python 3, the return value is a
@code{memoryview} object.
@end defvar
-@defvar BtraceInstruction.decoded
+@defvar RecordInstruction.decoded
A human readable string with the disassembled instruction.
@end defvar
-@defvar BtraceInstruction.size
+@defvar RecordInstruction.size
The size of the instruction in bytes.
@end defvar
-@defvar BtraceInstruction.is_speculative
+@defvar RecordInstruction.is_speculative
A boolean indicating whether the instruction was executed
speculatively.
@end defvar
@@ -3230,7 +3227,7 @@ An integer representing the function call's stack level. May be
@end defvar
@defvar BtraceFunctionCall.instructions
-A list of @code{gdb.BtraceInstruction} or @code{gdb.RecordGap} objects
+A list of @code{gdb.RecordInstruction} or @code{gdb.RecordGap} objects
associated with this function call.
@end defvar