aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTim Wiederhake <tim.wiederhake@intel.com>2017-05-30 12:47:37 +0200
committerTim Wiederhake <tim.wiederhake@intel.com>2017-05-30 12:49:25 +0200
commit42bfe59e3a3fef26be6809168756f40740fac1d0 (patch)
tree0a4dba01a7aa394ffd8190f12303b97d17e40830 /gdb/python
parentb54b03bd874936ab3c91f23e5dff3a87153c4e36 (diff)
downloadgdb-42bfe59e3a3fef26be6809168756f40740fac1d0.zip
gdb-42bfe59e3a3fef26be6809168756f40740fac1d0.tar.gz
gdb-42bfe59e3a3fef26be6809168756f40740fac1d0.tar.bz2
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.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-record-btrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-record-btrace.c b/gdb/python/py-record-btrace.c
index d684561..9dd2199 100644
--- a/gdb/python/py-record-btrace.c
+++ b/gdb/python/py-record-btrace.c
@@ -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