gdb调试dce

来源:互联网 发布:ps笔刷for mac 百度云 编辑:程序博客网 时间:2024/06/10 15:12

预备条件


debuginfo-install glibc-2.12-1.149.el6_6.9.x86_64 gsl-1.13-1.el6.x86_64


调试步骤


[root@gdc1000 example]# ../../../waf shell

Waf: Entering directory `/home/gftp/tool/network/dce2/source/ns-3-dce/build'

Waf: Leaving directory `/home/gftp/tool/network/dce2/source/ns-3-dce/build'


[root@gdc1000 ns-3-dce]# cd build/myscripts/
btorrent1/       ccn-exp1/        ccn-tap-vlc/     iperf-multi/     mt2/             ns-3-dce-quagga/ ping-mt1/        tuto1/           tuto3/
ccn-common/      ccn-mt1/         dce-emu-ping/    loaders-test/    mt3/             ping/            sleep/           tuto2/           
[root@gdc1000 ns-3-dce]# cd build/myscripts/ns-3-dce-quagga/

bin/     example/ helper/  include/ lib/     test/   


[root@gdc1000 ns-3-dce]# cd build/myscripts/ns-3-dce-quagga/example/
[root@gdc1000 example]# ls
dce-quagga-bgpd-caida.cc.15.o  dce-quagga-ospf6d.cc.14.o  dce-quagga-ospfd-rocketfuel.cc.9.o  dce-quagga-ripd.cc.11.o    dce-zebra-simple.cc.8.o

dce-quagga-bgpd.cc.16.o        dce-quagga-ospfd.cc.13.o   dce-quagga-radvd.cc.10.o            dce-quagga-ripngd.cc.12.o


[root@gdc1000 example]# gdb dce-quagga-ospfd
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6)
Copyright (C) 2010 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 /home/gftp/tool/network/dce2/build/bin/dce-quagga-ospfd...done.
(gdb)

0 0