Skip to content

Instantly share code, notes, and snippets.

@Code-Hex
Last active April 28, 2020 14:58
Show Gist options
  • Select an option

  • Save Code-Hex/7adb844121cc1d773b8b4ebbcf28ff02 to your computer and use it in GitHub Desktop.

Select an option

Save Code-Hex/7adb844121cc1d773b8b4ebbcf28ff02 to your computer and use it in GitHub Desktop.
neovim 調査
  • UI_BRIDGE_CALL(b, stop, 1, b);ui_bridge_stop_event を呼ぶ in ui_bridge_stop
  • ui_bridge_attachui_bridge_stop をセットしてる
  • これらを呼び出す ui_call_stopos_exit の中で呼ばれてる
@Code-Hex
Copy link
Copy Markdown
Author

ctrl-d なしで fg (continue)

47505/0x425ae:     55816 2079641      8 psynch_cvwait(0x7FDA8FE04AA0, 0x10100000200, 0x100)		 = -1 Err#260
47505/0x425b4:     13102     154     73 open_nocancel("/Users/codehex/.local/share/nvim/log\0", 0x209, 0x1B6)		 = 15 0
47505/0x425ae:     55835      87      6 read(0x4, "*\0", 0x1)		 = 1 0
47505/0x425b4:     13106       5      1 lseek(0xF, 0x0, 0x2)		 = 2030548 0
47505/0x425b4:     13141       7      3 fstat64(0xF, 0x700000810F38, 0x0)		 = 0 0
47505/0x425ae:     55850      87      7 write(0x14, "`\232\005\b\0", 0x10)		 = 16 0
47505/0x425ae:     55854       6      3 write(0x5, "*\0", 0x1)		 = 1 0
47505/0x425b4:     13210      58     53 write_nocancel(0xF, "DEBUG 2020-04-26T15:30:53.322 47505 suspend_event:1284: ~~ sent sigstop ~~\n\0", 0x4B)		 = 75 0
47505/0x425ae:     55862       7      2 sigreturn(0x7FFEE7C556B0, 0x1E, 0x98ED0862DFBA2AD7)		 = 0 Err#-2
47505/0x425b4:     13290      79     75 close_nocancel(0xF)		 = 0 0
47505/0x425b4:     13305       7      1 __pthread_sigmask(0x3, 0x7000008114B0, 0x700000811550)		 = 0 0

@Code-Hex
Copy link
Copy Markdown
Author

tui 上のコードに関する設計思想が説明されてる PR
neovim/neovim#3246

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment