Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Debugging of subagent

12 views
Skip to first unread message

Chetcuti, Christian

unread,
May 12, 2016, 4:57:21 AM5/12/16
to

Dear all,

 

I have managed to build my own agent successfully after following the subagent tutorial.

 

I am now trying to debug this subagent using gdb.  The problem is that gdb is not stepping into a function coming from the shared libraries of net-snmp when I request him to do so.

 

Could you please guide me in order to perform proper debugging of this sub-agent.

 

If it helps this is my makefile:

 

CC=g++

 

CFLAGS= -g -DHL_LINUX

OBJS = xb-subagent.o

 

BUILDAGENTLIBS=-L/usr/local/lib -lnetsnmpmibs -ldl -lnetsnmpagent -Wl,-E -lnetsnmp -lm -lrt -lpthread

 

all: xb-subagent

 

xb-subagent: $(OBJS)

        $(CC) $(OBJS) -o xb-subagent $(BUILDAGENTLIBS)

 

xb-subagent.o: xb-subagent.cpp

        $(CC) $(CFLAGS) -c xb-subagent.cpp

 

clean:

        rm $(OBJS) xb-subagent

 

Thanks and best regards,

Chris

 

 

 


HOB Software Ltd
www.hobsoft.com
HOB

______________________________________________________________
Disclaimer:
This message may contain confidential and legally privileged information. If you are not the addressee notify the sender immediately and delete it (do not copy, forward, disclose or use any part of it). Internet communications cannot be garanteed to be timely, secure, error or virus-free. The company does not accept liability for any errors or omissions.
______________________________________________________________

Chetcuti, Christian

unread,
May 12, 2016, 5:09:11 AM5/12/16
to

Just a quick note:

 

Managed to solve this problem myself by adding

                "export LD_LIBRARY_PATH=/usr/local/lib"

 

Regards,

Chris

0 new messages