Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hiroyuki-sato
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiroyuki-sato/b534f88dfa771f96aae7 to your computer and use it in GitHub Desktop.
Save hiroyuki-sato/b534f88dfa771f96aae7 to your computer and use it in GitHub Desktop.
Groonga 2 勉強会の準備

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 {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment