This adjusts the lldb-dap listening mode to accept multiple clients. Each client initializes a new instance of DAP and an associated `lldb::SBDebugger` instance. The listening mode is configured with the `--connection` option and supports listening on a port or a unix socket on supported platforms. When running in server mode launch and attach performance should be improved by lldb sharing symbols for core libraries between debug sessions.
11 lines
191 B
C
11 lines
191 B
C
#include <stdio.h>
|
|
|
|
int main(int argc, char const *argv[]) {
|
|
if (argc == 2) { // breakpoint 1
|
|
printf("Hello %s!\n", argv[1]);
|
|
} else {
|
|
printf("Hello World!\n");
|
|
}
|
|
return 0;
|
|
}
|