[Lldb-commits] [lldb] r300162 - Don't use uuid_clear(), non-darwin platforms include
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 12 19:12:32 PDT 2017
Author: jmolenda
Date: Wed Apr 12 21:12:32 2017
New Revision: 300162
URL: http://llvm.org/viewvc/llvm-project?rev=300162&view=rev
Log:
Don't use uuid_clear(), non-darwin platforms include
Utility/UuidCompatibility.h which gets you a definiton
of uuid_t but none of the functions that operate on it.
Modified:
lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
Modified: lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp?rev=300162&r1=300161&r2=300162&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp (original)
+++ lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp Wed Apr 12 21:12:32 2017
@@ -5468,7 +5468,7 @@ bool ObjectFileMachO::GetCorefileMainBin
{
uint32_t type = 0;
uuid_t raw_uuid;
- uuid_clear (raw_uuid);
+ memset (raw_uuid, 0, sizeof (uuid_t));
if (m_data.GetU32 (&offset, &type, 1)
&& m_data.GetU64 (&offset, &address, 1)
More information about the lldb-commits
mailing list