Python: Fix indentation in py-record-btrace.c

This commit is contained in:
Tim Wiederhake 2017-05-02 11:35:54 +02:00
parent fe50e98c9a
commit 8d0050ea19
2 changed files with 36 additions and 30 deletions

View File

@ -1,3 +1,9 @@
2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
* python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
indentation.
2017-05-01 Joel Brobecker <brobecker@adacore.com>
* MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to

View File

@ -39,17 +39,17 @@
do { \
struct thread_info *tinfo = find_thread_ptid (obj->ptid); \
if (tinfo == NULL || btrace_is_empty (tinfo)) \
return PyErr_Format (gdbpy_gdb_error, _("Empty branch trace."));\
return PyErr_Format (gdbpy_gdb_error, _("Empty branch trace.")); \
if (0 == btrace_find_insn_by_number (&iter, &tinfo->btrace, \
obj->number)) \
return PyErr_Format (gdbpy_gdb_error, _("No such instruction."));\
return PyErr_Format (gdbpy_gdb_error, _("No such instruction.")); \
} while (0)
#define BTPY_REQUIRE_VALID_CALL(obj, iter) \
do { \
struct thread_info *tinfo = find_thread_ptid (obj->ptid); \
if (tinfo == NULL || btrace_is_empty (tinfo)) \
return PyErr_Format (gdbpy_gdb_error, _("Empty branch trace."));\
return PyErr_Format (gdbpy_gdb_error, _("Empty branch trace.")); \
if (0 == btrace_find_call_by_number (&iter, &tinfo->btrace, \
obj->number)) \
return PyErr_Format (gdbpy_gdb_error, _("No such call segment."));\