Python: Move and rename gdb.BtraceInstruction
Remove gdb.BtraceInstruction and replace by gdb.RecordInstruction.
This commit is contained in:
parent
913aeadd9d
commit
0ed5da759e
7 changed files with 388 additions and 166 deletions
|
@ -25,7 +25,6 @@
|
|||
#include "record.h"
|
||||
|
||||
/* Python Record object. */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
PyObject_HEAD
|
||||
|
@ -37,6 +36,30 @@ typedef struct
|
|||
enum record_method method;
|
||||
} recpy_record_object;
|
||||
|
||||
/* Python recorded element object. This is generic enough to represent
|
||||
recorded instructions as well as recorded function call segments, hence the
|
||||
generic name. */
|
||||
typedef struct
|
||||
{
|
||||
PyObject_HEAD
|
||||
|
||||
/* The ptid this object refers to. */
|
||||
ptid_t ptid;
|
||||
|
||||
/* The current recording method. */
|
||||
enum record_method method;
|
||||
|
||||
/* Element number. */
|
||||
Py_ssize_t number;
|
||||
} recpy_element_object;
|
||||
|
||||
/* Python RecordInstruction type. */
|
||||
extern PyTypeObject recpy_insn_type;
|
||||
|
||||
/* Create a new gdb.RecordInstruction object. */
|
||||
extern PyObject *recpy_insn_new (ptid_t ptid, enum record_method method,
|
||||
Py_ssize_t number);
|
||||
|
||||
/* Create a new gdb.RecordGap object. */
|
||||
extern PyObject *recpy_gap_new (int reason_code, const char *reason_string,
|
||||
Py_ssize_t number);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue