-
-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathvirtualization_debug.m
More file actions
33 lines (28 loc) · 787 Bytes
/
virtualization_debug.m
File metadata and controls
33 lines (28 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// virtualization_debug.m
//
// Created by codehex.
//
#import "virtualization_debug.h"
#import "virtualization_helper.h"
/*!
@abstract Create a VZGDBDebugStubConfiguration with debug port for GDB server.
*/
void *newVZGDBDebugStubConfiguration(uint32_t port)
{
if (@available(macOS 12, *)) {
return [[_VZGDBDebugStubConfiguration alloc] initWithPort:(NSInteger)port];
}
RAISE_UNSUPPORTED_MACOS_EXCEPTION();
}
/*!
@abstract _VZDebugStubConfiguration. Empty by default.
*/
void setDebugStubVZVirtualMachineConfiguration(void *config, void *debugStub)
{
if (@available(macOS 12, *)) {
[(VZVirtualMachineConfiguration *)config _setDebugStub:(_VZDebugStubConfiguration *)debugStub];
return;
}
RAISE_UNSUPPORTED_MACOS_EXCEPTION();
}