Files
clang-p2996/lldb/test/API/tools/lldb-dap/server/main.c
John Harrison 998b28f196 [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (#116392)
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.
2025-02-21 18:30:43 -08:00

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;
}