Hi, Make

I check the Makefile of net-snmp and found that there was a -g flag as below, 
does it mean that I have compiled it with debugging information? Do I miss 
something else?

CFLAGS          = -g -O2 -Ulinux -Dlinux=linux

------------------                               
Ren
2008-07-08

-------------------------------------------------------------
发件人:Mike Ayers
发送日期:2008-07-08 08:45:01
收件人:xiao ren; [EMAIL PROTECTED]
抄送:
主题:RE: net-snmp debug problem

> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of xiao ren
> Sent: Monday, July 07, 2008 4:21 AM

> I'm using Eclipse3.2 + CDT 3.1 as IDE to develop snmp 
> application(under linux ubuntu 7.10), and ran into an error 
> when I debug the simple 'snmpdemoapp' program. While step to 
> 'snmp_open()' function, gdb always terminated and report: 
> 
> Warning:
> Cannot insert breakpoint 0.
> Error accessing memory address 0x801: Input/output error.
> 
> Single stepping until exit from function _dl_debug_state, 
> which has no line number information
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
            ||||||||||||||||||||||||||
            This implies that you built net-snmp without debuggiung 
information, then built your application against it with debugging information. 
 Could this be the case?


        HTH,

Mike
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to