diff options
author | Tom Tromey <tom@tromey.com> | 2019-01-02 09:30:49 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-01-02 09:32:06 -0700 |
commit | 8833fbf05c5b93fb3ccf666d5a3bd0e51e75d1bd (patch) | |
tree | 5799abeec2743c0c13cc9f8f3cb3e11492162c83 /gdb/python/py-inferior.c | |
parent | 4ada3dfd5c07f0f1045a721a28fc905918ffbdfd (diff) | |
download | binutils-8833fbf05c5b93fb3ccf666d5a3bd0e51e75d1bd.zip binutils-8833fbf05c5b93fb3ccf666d5a3bd0e51e75d1bd.tar.gz binutils-8833fbf05c5b93fb3ccf666d5a3bd0e51e75d1bd.tar.bz2 |
Style improvements in gdb/python
This fixes a few minor style issues I found in gdb/python: some
unnecessary casts, the removal of an unnecessary local variable, and
one instance of incorrect formatting.
Tested by rebuilding and re-running gdb.python.
gdb/ChangeLog
2019-01-02 Tom Tromey <tom@tromey.com>
* python/py-inferior.c (gdbpy_initialize_inferior): Fix
indentation.
* python/py-frame.c (frapy_older): Remove cast.
(frapy_newer): Likewise.
* python/py-breakpoint.c (local_setattro): Remove cast.
* python/py-arch.c (archpy_name): Remove local variable.
* python/py-type.c (gdbpy_lookup_type): Remove cast.
Diffstat (limited to 'gdb/python/py-inferior.c')
-rw-r--r-- | gdb/python/py-inferior.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index 1c62a2c..b1b9e94 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -958,8 +958,8 @@ gdbpy_initialize_inferior (void) if (PyType_Ready (&membuf_object_type) < 0) return -1; - return gdb_pymodule_addobject (gdb_module, "Membuf", (PyObject *) - &membuf_object_type); + return gdb_pymodule_addobject (gdb_module, "Membuf", + (PyObject *) &membuf_object_type); } static gdb_PyGetSetDef inferior_object_getset[] = |