mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-29 15:18:34 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user