Skip to content

Commit 44c5434

Browse files
committed
Use ASCII flag
1 parent f1108b0 commit 44c5434

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

lldb/source/Plugins/ObjectFile/Minidump/MinidumpFileBuilder.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,6 @@ Status MinidumpFileBuilder::AddExceptions() {
695695

696696
RegisterContextSP reg_ctx_sp(thread_sp->GetRegisterContext());
697697
Exception exp_record = {};
698-
exp_record.ExceptionCode = static_cast<llvm::support::ulittle32_t>(stop_info_sp->GetValue());
699698
exp_record.ExceptionCode =
700699
static_cast<llvm::support::ulittle32_t>(stop_info_sp->GetValue());
701700
exp_record.ExceptionFlags = static_cast<llvm::support::ulittle32_t>(Exception::LLDB_FLAG);

lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ void ProcessMinidump::RefreshStateAfterStop() {
274274
return;
275275
}
276276
const char * description = nullptr;
277-
if ((exception_stream.ExceptionRecord.ExceptionFlags & llvm::minidump::Exception::LLDB_FLAG) == llvm::minidump::Exception::LLDB_FLAG)
277+
if (exception_stream.ExceptionRecord.ExceptionFlags == llvm::minidump::Exception::LLDB_FLAG)
278278
description = reinterpret_cast<const char *>(exception_stream.ExceptionRecord.ExceptionInformation);
279279

280280
stop_info = StopInfo::CreateStopReasonWithSignal(*stop_thread, signo, description);

llvm/include/llvm/BinaryFormat/Minidump.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ static_assert(sizeof(Thread) == 48);
247247
struct Exception {
248248
static constexpr size_t MaxParameters = 15;
249249
static constexpr size_t MaxParameterBytes = MaxParameters * sizeof(uint64_t);
250-
static const uint32_t LLDB_FLAG = 0x80000000;
250+
static const uint32_t LLDB_FLAG = 'LLDB';
251251

252252
support::ulittle32_t ExceptionCode;
253253
support::ulittle32_t ExceptionFlags;

0 commit comments

Comments
 (0)