python, btrace: Fix some small formatting issues.
authorFelix Willgerodt <felix.willgerodt@intel.com>
Mon, 3 Apr 2023 14:13:49 +0000 (16:13 +0200)
committerFelix Willgerodt <felix.willgerodt@intel.com>
Wed, 31 May 2023 07:27:17 +0000 (09:27 +0200)
Reviewed-By: Tom Tromey <tom@tromey.com>
gdb/python/py-record-btrace.c
gdb/python/py-record.c

index 7802a7d9534759992e14f57942a865703e1e7465..7978f3332c6f60524abfbbb0b4fb5ea6affe5899 100644 (file)
@@ -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 ());
 }
 
index 5fc64f6aa780c3a62602779766a5f5cc42623a2e..c96c649b29c6a6e7b3a5aa0f85dcc58e603a74d8 100644 (file)
@@ -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);