通过以下代码进行调试时,gdb会挂断。
$ gdb /sbin/keepalived
(gdb) set follow-fork-mode child
(gdb) run -n -f /etc/keepalived/keepalived.conf
Starting program: /sbin/keepalived -n -f /etc/keepalived/keepalived.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New process 12730]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
gdb,无响应...