opensips/kamailio gdb代码调试方法详解
Process:: ID=0 PID=6651 Type=attendant
Process:: ID=1 PID=6653 Type=udp receiver child=0 sock=172.16.0.16:53
Process:: ID=2 PID=6654 Type=udp receiver child=1 sock=172.16.0.16:53
Process:: ID=6 PID=6662 Type=timer
Process:: ID=7 PID=6665 Type=MI FIFO
Process:: ID=8 PID=6668 Type=ctl handler
Process:: ID=9 PID=6669 Type=SNMP AgentX
Process:: ID=10 PID=6672 Type=tcp receiver (generic) child=0
Process:: ID=11 PID=6674 Type=tcp receiver (generic) child=1
Process:: ID=12 PID=6676 Type=tcp receiver (generic) child=2
Process:: ID=13 PID=6677 Type=tcp receiver (generic) child=3
Process:: ID=14 PID=6679 Type=tcp main process
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-45.el5)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/kamailio...done.
(gdb) run
Process:: ID=0 PID=6651 Type=attendant
Process:: ID=1 PID=6653 Type=udp receiver child=0 sock=172.16.0.16:53
Process:: ID=6 PID=6662 Type=timer
Process:: ID=7 PID=6665 Type=MI FIFO
Process:: ID=8 PID=6668 Type=ctl handler
Process:: ID=9 PID=6669 Type=SNMP AgentX
Process:: ID=10 PID=6672 Type=tcp receiver (generic) child=0
Process:: ID=14 PID=6679 Type=tcp main process
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-45.el5)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) attach 6672
Attaching to process 6672
Breakpoint 1 at 0x2b6c45e70082: file redis_base.c, line 100.
(gdb) c
Continuing.
kamailio/opensips 技术交流QQ群:118791050
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。