From: Felix Willgerodt Date: Mon, 3 Apr 2023 14:13:49 +0000 (+0200) Subject: python, btrace: Fix some small formatting issues. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e9683acf5e51c2bac8aa68d30d9ac3683dddcc7d;p=binutils-gdb.git python, btrace: Fix some small formatting issues. Reviewed-By: Tom Tromey --- diff --git a/gdb/python/py-record-btrace.c b/gdb/python/py-record-btrace.c index 7802a7d9534..7978f3332c6 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 5fc64f6aa78..c96c649b29c 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);