Index: gdb-8.2/gdb/python/py-record-btrace.c =================================================================== --- gdb-8.2.orig/gdb/python/py-record-btrace.c +++ gdb-8.2/gdb/python/py-record-btrace.c @@ -43,7 +43,7 @@ typedef struct { PyObject_HEAD /* The thread this list belongs to. */ - thread_info *thread; + struct thread_info *thread; /* The first index being part of this list. */ Py_ssize_t first; @@ -178,7 +178,7 @@ btpy_insn_or_gap_new (struct thread_info /* Create a new gdb.BtraceList object. */ static PyObject * -btpy_list_new (thread_info *thread, Py_ssize_t first, Py_ssize_t last, Py_ssize_t step, +btpy_list_new (struct thread_info *thread, Py_ssize_t first, Py_ssize_t last, Py_ssize_t step, PyTypeObject *element_type) { btpy_list_object * const obj = PyObject_New (btpy_list_object, @@ -654,7 +654,7 @@ PyObject * recpy_bt_replay_position (PyObject *self, void *closure) { const recpy_record_object * const record = (recpy_record_object *) self; - thread_info * tinfo = record->thread; + struct thread_info * tinfo = record->thread; if (tinfo == NULL) Py_RETURN_NONE; @@ -673,7 +673,7 @@ PyObject * recpy_bt_begin (PyObject *self, void *closure) { const recpy_record_object * const record = (recpy_record_object *) self; - thread_info *const tinfo = record->thread; + struct thread_info *const tinfo = record->thread; struct btrace_insn_iterator iterator; if (tinfo == NULL) @@ -695,7 +695,7 @@ PyObject * recpy_bt_end (PyObject *self, void *closure) { const recpy_record_object * const record = (recpy_record_object *) self; - thread_info *const tinfo = record->thread; + struct thread_info *const tinfo = record->thread; struct btrace_insn_iterator iterator; if (tinfo == NULL) @@ -717,7 +717,7 @@ PyObject * recpy_bt_instruction_history (PyObject *self, void *closure) { const recpy_record_object * const record = (recpy_record_object *) self; - thread_info *const tinfo = record->thread; + struct thread_info *const tinfo = record->thread; struct btrace_insn_iterator iterator; unsigned long first = 0; unsigned long last = 0; @@ -746,7 +746,7 @@ PyObject * recpy_bt_function_call_history (PyObject *self, void *closure) { const recpy_record_object * const record = (recpy_record_object *) self; - thread_info *const tinfo = record->thread; + struct thread_info *const tinfo = record->thread; struct btrace_call_iterator iterator; unsigned long first = 0; unsigned long last = 0; @@ -774,7 +774,7 @@ PyObject * recpy_bt_goto (PyObject *self, PyObject *args) { const recpy_record_object * const record = (recpy_record_object *) self; - thread_info *const tinfo = record->thread; + struct thread_info *const tinfo = record->thread; const recpy_element_object *obj; if (tinfo == NULL || btrace_is_empty (tinfo))