From c583a2520616c2736cffc389c89a48b159366e6c Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 8 Feb 2023 15:36:23 -0500 Subject: Run clang-format.sh Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968 --- gdb/python/py-instruction.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'gdb/python/py-instruction.c') diff --git a/gdb/python/py-instruction.c b/gdb/python/py-instruction.c index ba85a50..91401d7 100644 --- a/gdb/python/py-instruction.c +++ b/gdb/python/py-instruction.c @@ -24,13 +24,12 @@ contains getters for four elements: "pc" (int), "data" (buffer), "decode" (str) and "size" (int) that must be overridden by sub classes. */ -PyTypeObject py_insn_type = { - PyVarObject_HEAD_INIT (NULL, 0) -}; +PyTypeObject py_insn_type = { PyVarObject_HEAD_INIT (NULL, 0) }; /* Python instruction object. */ -struct py_insn_obj { +struct py_insn_obj +{ PyObject_HEAD }; @@ -39,19 +38,17 @@ struct py_insn_obj { static PyObject * py_insn_getter (PyObject *self, void *closure) { - return PyErr_Format (PyExc_NotImplementedError, _("Not implemented.")); + return PyErr_Format (PyExc_NotImplementedError, _ ("Not implemented.")); } /* Instruction members. */ -static gdb_PyGetSetDef py_insn_getset[] = -{ - { "pc", py_insn_getter, NULL, "instruction address", NULL}, - { "data", py_insn_getter, NULL, "instruction memory", NULL}, - { "decoded", py_insn_getter, NULL, "decoded instruction", NULL}, - { "size", py_insn_getter, NULL, "instruction size in bytes", NULL}, - {NULL} -}; +static gdb_PyGetSetDef py_insn_getset[] + = { { "pc", py_insn_getter, NULL, "instruction address", NULL }, + { "data", py_insn_getter, NULL, "instruction memory", NULL }, + { "decoded", py_insn_getter, NULL, "decoded instruction", NULL }, + { "size", py_insn_getter, NULL, "instruction size in bytes", NULL }, + { NULL } }; /* See py-instruction.h. */ -- cgit v1.1