diff options
-rw-r--r-- | gdb/python/py-record-btrace.c | 5 | ||||
-rw-r--r-- | gdb/python/py-record.c | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/gdb/python/py-record-btrace.c b/gdb/python/py-record-btrace.c index 7802a7d..7978f33 100644 --- a/gdb/python/py-record-btrace.c +++ b/gdb/python/py-record-btrace.c @@ -169,8 +169,8 @@ btpy_insn_or_gap_new (thread_info *tinfo, Py_ssize_t number) /* 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, - PyTypeObject *element_type) +btpy_list_new (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, &btpy_list_type); @@ -310,7 +310,6 @@ recpy_bt_insn_decoded (PyObject *self, void *closure) return NULL; } - return PyBytes_FromString (strfile.string ().c_str ()); } diff --git a/gdb/python/py-record.c b/gdb/python/py-record.c index 5fc64f6..c96c649 100644 --- a/gdb/python/py-record.c +++ b/gdb/python/py-record.c @@ -177,7 +177,8 @@ recpy_end (PyObject *self, void* closure) /* Create a new gdb.RecordInstruction object. */ PyObject * -recpy_insn_new (thread_info *thread, enum record_method method, Py_ssize_t number) +recpy_insn_new (thread_info *thread, enum record_method method, + Py_ssize_t number) { recpy_element_object * const obj = PyObject_New (recpy_element_object, &recpy_insn_type); @@ -273,7 +274,8 @@ recpy_insn_is_speculative (PyObject *self, void *closure) /* Create a new gdb.RecordFunctionSegment object. */ PyObject * -recpy_func_new (thread_info *thread, enum record_method method, Py_ssize_t number) +recpy_func_new (thread_info *thread, enum record_method method, + Py_ssize_t number) { recpy_element_object * const obj = PyObject_New (recpy_element_object, &recpy_func_type); |