Skip to content

Commit 3b61070

Browse files
authored
Merge pull request #7124 from bulbazord/20230725-cherry-picks
Cherry-pick some lldb changes to stable/20230725
2 parents a42e38b + 239c9b0 commit 3b61070

File tree

8 files changed

+12
-29
lines changed

8 files changed

+12
-29
lines changed

lldb/include/lldb/API/SBDefines.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class LLDB_API SBAddress;
4646
class LLDB_API SBAttachInfo;
4747
class LLDB_API SBBlock;
4848
class LLDB_API SBBreakpoint;
49+
class LLDB_API SBBreakpointList;
4950
class LLDB_API SBBreakpointLocation;
5051
class LLDB_API SBBreakpointName;
5152
class LLDB_API SBBreakpointNameImpl;
@@ -85,11 +86,13 @@ class LLDB_API SBModule;
8586
class LLDB_API SBModuleSpec;
8687
class LLDB_API SBModuleSpecList;
8788
class LLDB_API SBPlatform;
89+
class LLDB_API SBPlatformConnectOptions;
8890
class LLDB_API SBPlatformShellCommand;
8991
class LLDB_API SBProcess;
9092
class LLDB_API SBProcessInfo;
9193
class LLDB_API SBQueue;
9294
class LLDB_API SBQueueItem;
95+
class LLDB_API SBReplayOptions;
9396
class LLDB_API SBReproducer;
9497
class LLDB_API SBScriptObject;
9598
class LLDB_API SBSection;

lldb/source/Utility/UuidCompatibility.h renamed to lldb/include/lldb/Utility/AppleUuidCompatibility.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,11 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// Include this header if your system does not have a definition of uuid_t
9+
// Include this header for a definition of uuid_t compatible with Darwin's
10+
// definition.
1011

1112
#ifndef utility_UUID_COMPATIBILITY_H
1213
#define utility_UUID_COMPATIBILITY_H
13-
1414
// uuid_t is guaranteed to always be a 16-byte array
1515
typedef unsigned char uuid_t[16];
16-
17-
// Return 1 if uuid is null, that is, all zeroes.
18-
inline __attribute__((always_inline)) int uuid_is_null(uuid_t uuid) {
19-
for (int i = 0; i < 16; i++)
20-
if (uuid[i])
21-
return 0;
22-
return 1;
23-
}
24-
2516
#endif // utility_UUID_COMPATIBILITY_H

lldb/source/API/CMakeLists.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,11 @@ else()
232232
# When building the LLDB framework, this isn't necessary as there we copy everything we need into
233233
# the framework (including the Clang resourece directory).
234234
if(NOT LLDB_BUILD_FRAMEWORK)
235-
get_target_property(liblldb_TARGET_FILE_DIR liblldb TARGET_FILE_DIR)
236-
file(MAKE_DIRECTORY "${liblldb_TARGET_FILE_DIR}/clang")
235+
set(LLDB_CLANG_RESOURCE_DIR "$<TARGET_FILE_DIR:liblldb>/clang")
237236
add_custom_command(TARGET liblldb POST_BUILD
238-
COMMENT "Linking Clang resource dir into LLDB build directory: ${liblldb_TARGET_FILE_DIR}/clang"
239-
COMMAND ${CMAKE_COMMAND} -E make_directory "${liblldb_TARGET_FILE_DIR}/clang"
240-
COMMAND ${CMAKE_COMMAND} -E create_symlink "${LLDB_EXTERNAL_CLANG_RESOURCE_DIR}" "${liblldb_TARGET_FILE_DIR}/clang/${LLDB_CLANG_RESOURCE_DIR_NAME}"
237+
COMMENT "Linking Clang resource dir into LLDB build directory: ${LLDB_CLANG_RESOURCE_DIR}"
238+
COMMAND ${CMAKE_COMMAND} -E create_symlink
239+
"${LLDB_EXTERNAL_CLANG_RESOURCE_DIR}" "${LLDB_CLANG_RESOURCE_DIR}"
241240
)
242241
endif()
243242
endif()

lldb/source/Expression/ObjectFileJIT.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525
#include "lldb/Utility/Timer.h"
2626
#include "lldb/Utility/UUID.h"
2727

28-
#ifndef __APPLE__
29-
#include "Utility/UuidCompatibility.h"
30-
#endif
31-
3228
using namespace lldb;
3329
using namespace lldb_private;
3430

lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "lldb/Host/macosx/HostInfoMacOSX.h"
10-
#include "Utility/UuidCompatibility.h"
1110
#include "lldb/Host/FileSystem.h"
1211
#include "lldb/Host/Host.h"
1312
#include "lldb/Host/HostInfo.h"
@@ -32,6 +31,7 @@
3231
#include <sys/sysctl.h>
3332
#include <sys/syslimits.h>
3433
#include <sys/types.h>
34+
#include <uuid/uuid.h>
3535

3636
// Objective-C/C++ includes
3737
#include <CoreFoundation/CoreFoundation.h>

lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@
4343
#define DEBUG_PRINTF(fmt, ...)
4444
#endif
4545

46-
#ifndef __APPLE__
47-
#include "Utility/UuidCompatibility.h"
48-
#else
49-
#include <uuid/uuid.h>
50-
#endif
51-
5246
#include <memory>
5347

5448
using namespace lldb;

lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#endif
4141

4242
#ifndef __APPLE__
43-
#include "Utility/UuidCompatibility.h"
43+
#include "lldb/Utility/AppleUuidCompatibility.h"
4444
#else
4545
#include <uuid/uuid.h>
4646
#endif

lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
#endif
6868

6969
#ifndef __APPLE__
70-
#include "Utility/UuidCompatibility.h"
70+
#include "lldb/Utility/AppleUuidCompatibility.h"
7171
#else
7272
#include <uuid/uuid.h>
7373
#endif

0 commit comments

Comments
 (0)