Bhartendu Maheshwari
2005-10-31 16:23:37 UTC
--0-988319361-1130775718=:81597
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi All,
I am trying to debug snmpd but unable to do so, the logs are dumped below. As per my understaning if I compile with "-g" option then we can run with gdb, I checked the snmpd and snmplib is successfully compiled with "-g" option but showing error as "no debugging symbols found". I am not able to understand why? Please correct me if I am wrong. Do I need to attach gdb with the snmpd task id. Please help me in debugging snmpd.
GCC Output
==========
/bin/sh ../libtool --mode=link gcc -g -O2 -Dlinux -o snmpd snmpd.lo libnetsnmpagent.la libnetsnmpmibs.la helpers/libnetsnmphelpers.la ../snmplib/libnetsnmp.la -ldl -lm
gcc -g -O2 -Dlinux -o .libs/snmpd snmpd.o ./.libs/libnetsnmpagent.so ./.libs/libnetsnmpmibs.so helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so -ldl -lm -Wl,--rpath -Wl,/usr/local/lib
creating snmpd
GDB Output
==========
[***@localhost sbin]# gdb snmpd
GNU gdb Red Hat Linux (6.1post-1.20040607.43rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols found)...Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb)
Thanks & Regards
Bhartendu
---------------------------------
Enjoy this Diwali with Y! India Click here
--0-988319361-1130775718=:81597
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<DIV>
<DIV>Hi All,</DIV>
<DIV> </DIV>
<DIV>I am trying to debug snmpd but unable to do so, the logs are dumped below. As per my understaning if I compile with "-g" option then we can run with gdb, I checked the snmpd and snmplib is successfully compiled with "-g" option but showing error as "no debugging symbols found". I am not able to understand why? Please correct me if I am wrong. Do I need to attach gdb with the snmpd task id. Please help me in debugging snmpd.</DIV>
<DIV> </DIV>
<DIV>GCC Output<BR>==========</DIV>
<DIV>/bin/sh ../libtool --mode=link gcc -g -O2 -Dlinux -o snmpd snmpd.lo libnetsnmpagent.la libnetsnmpmibs.la helpers/libnetsnmphelpers.la ../snmplib/libnetsnmp.la -ldl -lm<BR>gcc -g -O2 -Dlinux -o .libs/snmpd snmpd.o ./.libs/libnetsnmpagent.so ./.libs/libnetsnmpmibs.so helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so -ldl -lm -Wl,--rpath -Wl,/usr/local/lib<BR>creating snmpd</DIV>
<DIV><BR>GDB Output<BR>==========</DIV>
<DIV>[***@localhost sbin]# gdb snmpd<BR>GNU gdb Red Hat Linux (6.1post-1.20040607.43rh)<BR>Copyright 2004 Free Software Foundation, Inc.<BR>GDB is free software, covered by the GNU General Public License, and you are<BR>welcome to change it and/or distribute copies of it under certain conditions.<BR>Type "show copying" to see the conditions.<BR>There is absolutely no warranty for GDB. Type "show warranty" for details.<BR>This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols found)...Using host libthread_db library "/lib/tls/libthread_db.so.1".</DIV>
<DIV>(gdb)</DIV>
<DIV> </DIV>
<DIV>Thanks & Regards</DIV>
<DIV>Bhartendu</DIV></DIV><p>
<hr size=1>
Enjoy this Diwali with Y! India <a href="http://in.promos.yahoo.com/fabmall/index.html">Click here</a>
--0-988319361-1130775718=:81597--
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi All,
I am trying to debug snmpd but unable to do so, the logs are dumped below. As per my understaning if I compile with "-g" option then we can run with gdb, I checked the snmpd and snmplib is successfully compiled with "-g" option but showing error as "no debugging symbols found". I am not able to understand why? Please correct me if I am wrong. Do I need to attach gdb with the snmpd task id. Please help me in debugging snmpd.
GCC Output
==========
/bin/sh ../libtool --mode=link gcc -g -O2 -Dlinux -o snmpd snmpd.lo libnetsnmpagent.la libnetsnmpmibs.la helpers/libnetsnmphelpers.la ../snmplib/libnetsnmp.la -ldl -lm
gcc -g -O2 -Dlinux -o .libs/snmpd snmpd.o ./.libs/libnetsnmpagent.so ./.libs/libnetsnmpmibs.so helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so -ldl -lm -Wl,--rpath -Wl,/usr/local/lib
creating snmpd
GDB Output
==========
[***@localhost sbin]# gdb snmpd
GNU gdb Red Hat Linux (6.1post-1.20040607.43rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols found)...Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb)
Thanks & Regards
Bhartendu
---------------------------------
Enjoy this Diwali with Y! India Click here
--0-988319361-1130775718=:81597
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<DIV>
<DIV>Hi All,</DIV>
<DIV> </DIV>
<DIV>I am trying to debug snmpd but unable to do so, the logs are dumped below. As per my understaning if I compile with "-g" option then we can run with gdb, I checked the snmpd and snmplib is successfully compiled with "-g" option but showing error as "no debugging symbols found". I am not able to understand why? Please correct me if I am wrong. Do I need to attach gdb with the snmpd task id. Please help me in debugging snmpd.</DIV>
<DIV> </DIV>
<DIV>GCC Output<BR>==========</DIV>
<DIV>/bin/sh ../libtool --mode=link gcc -g -O2 -Dlinux -o snmpd snmpd.lo libnetsnmpagent.la libnetsnmpmibs.la helpers/libnetsnmphelpers.la ../snmplib/libnetsnmp.la -ldl -lm<BR>gcc -g -O2 -Dlinux -o .libs/snmpd snmpd.o ./.libs/libnetsnmpagent.so ./.libs/libnetsnmpmibs.so helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so -ldl -lm -Wl,--rpath -Wl,/usr/local/lib<BR>creating snmpd</DIV>
<DIV><BR>GDB Output<BR>==========</DIV>
<DIV>[***@localhost sbin]# gdb snmpd<BR>GNU gdb Red Hat Linux (6.1post-1.20040607.43rh)<BR>Copyright 2004 Free Software Foundation, Inc.<BR>GDB is free software, covered by the GNU General Public License, and you are<BR>welcome to change it and/or distribute copies of it under certain conditions.<BR>Type "show copying" to see the conditions.<BR>There is absolutely no warranty for GDB. Type "show warranty" for details.<BR>This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols found)...Using host libthread_db library "/lib/tls/libthread_db.so.1".</DIV>
<DIV>(gdb)</DIV>
<DIV> </DIV>
<DIV>Thanks & Regards</DIV>
<DIV>Bhartendu</DIV></DIV><p>
<hr size=1>
Enjoy this Diwali with Y! India <a href="http://in.promos.yahoo.com/fabmall/index.html">Click here</a>
--0-988319361-1130775718=:81597--
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information