Re: Unable to debug snmpd with gdb, compiled with "-g"

Bhartendu Maheshwari <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi all,
 
Thank you dave, I am able to debug snmpd.
 
I need one more input, I need the Net-snmp architecture and design document, as I have to understand and change some part of the code.
 
Can anyone tell me where I can find the document.
I am able to find the following link
http://net-snmp.sourceforge.net/dev/agent/index.html
 
If there is any other documents or website available, please update me.
 
Thanks & Regards
Bhartendu

Dave Shield <[email protected]> wrote:
On Mon, 2005-10-31 at 16:21 +0000, Bhartendu Maheshwari wrote:
> I am trying to debug snmpd but unable to do so, the logs are dumped
> below.... showing error as "no debugging symbols found". I am not able
> to understand why?

The file 'snmpd' is actually a shell-script wrapper round the
real binary (which is hidden away in a Safe Place). This is
probably confusing 'gdb'


> [root@localhost sbin]# gdb snmpd

Try running

../libtool gdb snmpd

instead.
That should pick up the real binary, and the various libraries.

Dave


		
---------------------------------
 Enjoy this Diwali with Y! India Click here
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.