btrace: Replace struct btrace_function::up.
This used to hold a function segment pointer. Change it to hold an index into the vector of function segments instead.
This commit is contained in:
parent
b54b03bd87
commit
42bfe59e3a
5 changed files with 130 additions and 64 deletions
|
@ -398,11 +398,11 @@ recpy_bt_func_up (PyObject *self, void *closure)
|
|||
if (func == NULL)
|
||||
return NULL;
|
||||
|
||||
if (func->up == NULL)
|
||||
if (func->up == 0)
|
||||
Py_RETURN_NONE;
|
||||
|
||||
return recpy_func_new (((recpy_element_object *) self)->ptid,
|
||||
RECORD_METHOD_BTRACE, func->up->number);
|
||||
RECORD_METHOD_BTRACE, func->up);
|
||||
}
|
||||
|
||||
/* Implementation of RecordFunctionSegment.prev [RecordFunctionSegment] for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue