Style improvements in gdb/python
authorTom Tromey <tom@tromey.com>
Wed, 2 Jan 2019 16:30:49 +0000 (09:30 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 2 Jan 2019 16:32:06 +0000 (09:32 -0700)
commit8833fbf05c5b93fb3ccf666d5a3bd0e51e75d1bd
tree5799abeec2743c0c13cc9f8f3cb3e11492162c83
parent4ada3dfd5c07f0f1045a721a28fc905918ffbdfd
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.
gdb/ChangeLog
gdb/python/py-arch.c
gdb/python/py-breakpoint.c
gdb/python/py-frame.c
gdb/python/py-inferior.c
gdb/python/py-type.c
This page took 0.025589 seconds and 4 git commands to generate.