+2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * python/py-record.c (recpy_ptid): Remove.
+ (recpy_record_getset): Remove recpy_ptid.
+
2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
* btrace.c (btrace_fetch): Set inferior_ptid.
+2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * python.texi (Recording in Python): Remove Record.ptid defvar.
+
2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
* gdb.texinfo (GDB/MI Thread Information): Add missing
A @code{gdb.Record} object has the following attributes:
-@defvar Record.ptid
-ID of the thread associated with this object as a tuple of three integers. The
-first is the Process ID (PID); the second is the Lightweight Process ID (LWPID),
-and the third is the Thread ID (TID). Either the LWPID or TID may be 0, which
-indicates that the operating system does not use that identifier.
-@end defvar
-
@defvar Record.method
A string with the current recording method, e.g.@: @code{full} or
@code{btrace}.
PyVarObject_HEAD_INIT (NULL, 0)
};
-/* Implementation of record.ptid. */
-
-static PyObject *
-recpy_ptid (PyObject *self, void* closure)
-{
- const recpy_record_object * const obj = (recpy_record_object *) self;
-
- return gdbpy_create_ptid_object (obj->ptid);
-}
-
/* Implementation of record.method. */
static PyObject *
/* Record member list. */
static gdb_PyGetSetDef recpy_record_getset[] = {
- { "ptid", recpy_ptid, NULL, "Current thread.", NULL },
{ "method", recpy_method, NULL, "Current recording method.", NULL },
{ "format", recpy_format, NULL, "Current recording format.", NULL },
{ "replay_position", recpy_replay_position, NULL, "Current replay position.",
+2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * gdb.python/py-record-btrace.exp: Remove Record.ptid test.
+
2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
* gdb.python/py-record-btrace-threads.c: New file.
with_test_prefix "prepare record" {
gdb_test_no_output "python r = gdb.start_recording(\"btrace\")"
- gdb_test "python print(len(r.ptid))" "3"
gdb_test "python print(r.method)" "btrace"
gdb_test "python print(r.format)" "pt|bts"
gdb_test "stepi 100" ".*"