diff options
author | Felix Willgerodt <felix.willgerodt@intel.com> | 2023-04-03 16:13:49 +0200 |
---|---|---|
committer | Felix Willgerodt <felix.willgerodt@intel.com> | 2023-05-31 09:27:17 +0200 |
commit | e9683acf5e51c2bac8aa68d30d9ac3683dddcc7d (patch) | |
tree | b0e98b16d06e40f84cffbf85cffdb7c1fd3d39c9 | |
parent | 9d66d71cdddec9075c6832054ba07e5469aeca84 (diff) | |
download | gdb-e9683acf5e51c2bac8aa68d30d9ac3683dddcc7d.zip gdb-e9683acf5e51c2bac8aa68d30d9ac3683dddcc7d.tar.gz gdb-e9683acf5e51c2bac8aa68d30d9ac3683dddcc7d.tar.bz2 |
python, btrace: Fix some small formatting issues.
Reviewed-By: Tom Tromey <tom@tromey.com>
-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); |