GDB test step
1 test program
gdb testProgram
2 add parameter
run parameter
3 where is error
where
1 [amas@ssm CrobMonitorServer]$ gdb cron_monitor_server
2 (gdb) run 8
Starting program: /home/amas/IDTPHTEXTS/CrobMonitorServer/cron_monitor_server 8
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
work=8 CheckName[work]=Check Heartbeat Nic1 Up CheckTrapStatus=5
Detaching after fork from child process 16802.
CheckTrapStatus=5
fail to open Check_Heartbeat_Nic1_Up
[Inferior 1 (process 16798) exited normally]
Missing separate debuginfos, use: debuginfo-install glibc-2.17-196.el7.x86_64 glibc-2.17-196.el7_4.2.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-8.el7.x86_64 libcom_err-1.42.9-10.el7.x86_64 libgcc-4.8.5-16.el7.x86_64 libgcc-4.8.5-16.el7_4.1.x86_64 libselinux-2.5-11.el7.x86_64 libstdc++-4.8.5-16.el7.x86_64 libstdc++-4.8.5-16.el7_4.1.x86_64 mariadb-libs-5.5.56-2.el7.x86_64 openssl-libs-1.0.2k-8.el7.x86_64 pcre-8.32-17.el7.x86_64 zlib-1.2.7-17.el7.x86_64
3 (gdb) where
No stack.
gdb testProgram
2 add parameter
run parameter
3 where is error
where
1 [amas@ssm CrobMonitorServer]$ gdb cron_monitor_server
2 (gdb) run 8
Starting program: /home/amas/IDTPHTEXTS/CrobMonitorServer/cron_monitor_server 8
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
work=8 CheckName[work]=Check Heartbeat Nic1 Up CheckTrapStatus=5
Detaching after fork from child process 16802.
CheckTrapStatus=5
fail to open Check_Heartbeat_Nic1_Up
[Inferior 1 (process 16798) exited normally]
Missing separate debuginfos, use: debuginfo-install glibc-2.17-196.el7.x86_64 glibc-2.17-196.el7_4.2.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-8.el7.x86_64 libcom_err-1.42.9-10.el7.x86_64 libgcc-4.8.5-16.el7.x86_64 libgcc-4.8.5-16.el7_4.1.x86_64 libselinux-2.5-11.el7.x86_64 libstdc++-4.8.5-16.el7.x86_64 libstdc++-4.8.5-16.el7_4.1.x86_64 mariadb-libs-5.5.56-2.el7.x86_64 openssl-libs-1.0.2k-8.el7.x86_64 pcre-8.32-17.el7.x86_64 zlib-1.2.7-17.el7.x86_64
3 (gdb) where
No stack.
留言
張貼留言