aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-03-09 14:56:09 -0500
committerSimon Marchi <simon.marchi@efficios.com>2023-03-09 16:32:00 -0500
commit287de65625a667b6403d0606fa75b67926ec7230 (patch)
treea4911b3dc540ba6a54e0aebbbe972cec6f1d8be1 /gdb/python
parent2562954ede66f32bff7d985e752b8052c2ae5775 (diff)
downloadbinutils-287de65625a667b6403d0606fa75b67926ec7230.zip
binutils-287de65625a667b6403d0606fa75b67926ec7230.tar.gz
binutils-287de65625a667b6403d0606fa75b67926ec7230.tar.bz2
gdb, gdbserver, gdbsupport: fix whitespace issues
Replace spaces with tabs in a bunch of places. Change-Id: If0f87180f1d13028dc178e5a8af7882a067868b0
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-cmd.c2
-rw-r--r--gdb/python/py-micmd.c6
-rw-r--r--gdb/python/python.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/gdb/python/py-cmd.c b/gdb/python/py-cmd.c
index f7fc79e..dbba204 100644
--- a/gdb/python/py-cmd.c
+++ b/gdb/python/py-cmd.c
@@ -521,7 +521,7 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kw)
docstring.release (), cmd_list);
/* If successful, the above takes ownership of the name, since we set
- name_allocated, so release it. */
+ name_allocated, so release it. */
cmd_name.release ();
/* There appears to be no API to set this. */
diff --git a/gdb/python/py-micmd.c b/gdb/python/py-micmd.c
index ef87b9c..c7c5a60 100644
--- a/gdb/python/py-micmd.c
+++ b/gdb/python/py-micmd.c
@@ -269,7 +269,7 @@ serialize_mi_result_1 (PyObject *result, const char *field_name)
gdbpy_handle_exception ();
for (Py_ssize_t i = 0; i < len; ++i)
{
- gdbpy_ref<> item (PySequence_ITEM (result, i));
+ gdbpy_ref<> item (PySequence_ITEM (result, i));
if (item == nullptr)
gdbpy_handle_exception ();
serialize_mi_result_1 (item.get (), nullptr);
@@ -452,7 +452,7 @@ micmdpy_install_command (micmdpy_object *obj)
if (cmd != nullptr && cmd_py == nullptr)
{
/* There is already an MI command registered with that name, and it's not
- a Python one. Forbid replacing a non-Python MI command. */
+ a Python one. Forbid replacing a non-Python MI command. */
PyErr_SetString (PyExc_RuntimeError,
_("unable to add command, name is already in use"));
return -1;
@@ -461,7 +461,7 @@ micmdpy_install_command (micmdpy_object *obj)
if (cmd_py != nullptr)
{
/* There is already a Python MI command registered with that name, swap
- in the new gdb.MICommand implementation. */
+ in the new gdb.MICommand implementation. */
cmd_py->swap_python_object (obj);
}
else
diff --git a/gdb/python/python.c b/gdb/python/python.c
index fb3d975..b295ff8 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -2078,7 +2078,7 @@ do_start_initialization ()
PyConfig_InitPythonConfig (&config);
PyStatus status = PyConfig_SetString (&config, &config.program_name,
- progname_copy);
+ progname_copy);
if (PyStatus_Exception (status))
goto init_done;