Skip to content

Commit 03eb418

Browse files
committed
fixup! clang-format
1 parent 223d85c commit 03eb418

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

lldb/tools/debugserver/source/MacOSX/MachException.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818
#include "PThreadMutex.h"
1919
#include "SysSignal.h"
2020
#include <cerrno>
21+
#include <inttypes.h>
2122
#include <sys/ptrace.h>
2223
#include <sys/types.h>
23-
#include <inttypes.h>
2424

25-
static void AppendExceptionData(
26-
std::vector<mach_exception_data_type_t> &out,
27-
mach_exception_data_t Data, mach_msg_type_number_t Count) {
25+
static void AppendExceptionData(std::vector<mach_exception_data_type_t> &out,
26+
mach_exception_data_t Data,
27+
mach_msg_type_number_t Count) {
2828
mach_exception_data_type_t Buf;
2929
for (mach_msg_type_number_t i = 0; i < Count; ++i) {
3030
// The input Data we receive need not be aligned correctly.
3131
// Perform an unaligned copy by pretending we're dealing with
3232
// a char* buffer. This is required to work around UBSAN/ASAN
3333
// "misaligned address" errors.
34-
auto * src = reinterpret_cast<char*>(&Buf);
35-
auto * dst = reinterpret_cast<char*>(Data + i);
34+
auto *src = reinterpret_cast<char *>(&Buf);
35+
auto *dst = reinterpret_cast<char *>(Data + i);
3636
memcpy(dst, src, sizeof(mach_exception_data_type_t));
3737
out.push_back(Buf);
3838
}
@@ -115,7 +115,8 @@ catch_mach_exception_raise(mach_port_t exc_port, mach_port_t thread_port,
115115
std::vector<mach_exception_data_type_t> exc_datas;
116116
AppendExceptionData(exc_datas, exc_data, exc_data_count);
117117
DNBLogThreaded("::%s ( exc_port = 0x%4.4x, thd_port = 0x%4.4x, tsk_port = "
118-
"0x%4.4x, exc_type = %d ( %s ), exc_data[%d] = { 0x%" PRIx64 ", "
118+
"0x%4.4x, exc_type = %d ( %s ), exc_data[%d] = { 0x%" PRIx64
119+
", "
119120
"0x%" PRIx64 " })",
120121
__FUNCTION__, exc_port, thread_port, task_port, exc_type,
121122
MachException::Name(exc_type), exc_data_count,

0 commit comments

Comments
 (0)