mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-28 22:21:26 +08:00
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.
This commit is contained in:
@ -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[] =
|
||||
|
Reference in New Issue
Block a user