groongaのコンパイル
wget http://packages.groonga.org/source/groonga/groonga-5.0.4.zip
unzip groonga-5.0.4.zip
cd groonga-5.0.4
./configure --enable-debug
make
デバッガを使って起動する。
lldb src/.libs/groonga
(lldb) target create "src/.libs/groonga"
Current executable set to 'src/.libs/groonga' (x86_64).
(lldb) b main
Breakpoint 1: where = groonga`main + 26 at groonga.c:3110, address = 0x000000010000154a
(lldb) run
Process 83896 launched: '/path/to/groonga-5.0.4/src/.libs/groonga' (x86_64)
Process 83896 stopped
* thread #1: tid = 0xb2457, 0x000000010000154a groonga`main(argc=1, argv=0x00007fff5fbff618) + 26 at groonga.c:3110, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
frame #0: 0x000000010000154a groonga`main(argc=1, argv=0x00007fff5fbff618) + 26 at groonga.c:3110
3107 newdb = (flags & FLAG_NEW_DB);
3108 is_daemon_mode = (flags & FLAG_MODE_DAEMON);
3109 if (flags & FLAG_MODE_CLIENT) {
-> 3110 exit_code = do_client(argc - i, argv + i);
3111 } else if (is_daemon_mode || (flags & FLAG_MODE_SERVER)) {
3112 exit_code = do_server(argc > i ? argv[i] : NULL);
3113 } else {