diff options
author | Tim Wiederhake <tim.wiederhake@intel.com> | 2017-05-30 12:47:37 +0200 |
---|---|---|
committer | Tim Wiederhake <tim.wiederhake@intel.com> | 2017-05-30 12:49:25 +0200 |
commit | 4aeb0dfcc42acfc108d3f870384d1719adc9569b (patch) | |
tree | 86ab32777669773fc1631319e29d595303df661d /gdb/python | |
parent | eb8f2b9c44619eecdb3b77da01da910fcf05abed (diff) | |
download | gdb-4aeb0dfcc42acfc108d3f870384d1719adc9569b.zip gdb-4aeb0dfcc42acfc108d3f870384d1719adc9569b.tar.gz gdb-4aeb0dfcc42acfc108d3f870384d1719adc9569b.tar.bz2 |
btrace: Replace struct btrace_function::segment.
This used to hold a pair of pointers to the previous and next function segment
that belong to this function call. Replace with a pair of indices into the
vector of function segments.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-record-btrace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/python/py-record-btrace.c b/gdb/python/py-record-btrace.c index 9dd2199..cd2be9f 100644 --- a/gdb/python/py-record-btrace.c +++ b/gdb/python/py-record-btrace.c @@ -416,11 +416,11 @@ recpy_bt_func_prev (PyObject *self, void *closure) if (func == NULL) return NULL; - if (func->segment.prev == NULL) + if (func->prev == 0) Py_RETURN_NONE; return recpy_func_new (((recpy_element_object *) self)->ptid, - RECORD_METHOD_BTRACE, func->segment.prev->number); + RECORD_METHOD_BTRACE, func->prev); } /* Implementation of RecordFunctionSegment.next [RecordFunctionSegment] for @@ -434,11 +434,11 @@ recpy_bt_func_next (PyObject *self, void *closure) if (func == NULL) return NULL; - if (func->segment.next == NULL) + if (func->next == 0) Py_RETURN_NONE; return recpy_func_new (((recpy_element_object *) self)->ptid, - RECORD_METHOD_BTRACE, func->segment.next->number); + RECORD_METHOD_BTRACE, func->next); } /* Implementation of BtraceList.__len__ (self) -> int. */ |