including all....

On Tue, Dec 27, 2011 at 9:48 PM, Ravi Kumar <[email protected]> wrote:

> Hi MF,
>
> I used libtool with gdb  as below. But still complete symbols are not
> being loaded it seems.
> I tried to set break point for header_complex of header_complex.c* *but
> gdb reports *Function *
> *"header_complex" not defined   *error*.  *Can you please help me in
> loading symbols
> for header_complex.c and other files ?
>
>
>
> [root@volga net-snmp-5.5]#* ./libtool --mode=execute gdb agent/snmpd *
> GNU gdb (GDB) Fedora (7.2-16.fc14)
> 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 "i686-redhat-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from
> /home/software/net-snmp-5.5/agent/.libs/lt-snmpd...done.
> (gdb) br header_complex
> *Function "header_complex" not defined.
>  ======================================> ?*
> Make breakpoint pending on future shared library load? (y or [n]) y
> Breakpoint 1 (header_complex) pending.
> (gdb) br
> No default breakpoint address now.
> (gdb) q
> [root@volga net-snmp-5.5]#
>
>
>
> Thanks..............
>
>
>
>
> On Tue, Dec 27, 2011 at 2:46 PM, Magnus Fromreide <[email protected]>wrote:
>
>> On Tue, 2011-12-27 at 14:06 +0530, Ravi Kumar wrote:
>> > Hi,
>> >
>> >
>> > Can any one tell me why the file type of snmpd is shown as "shell
>> > script text executable"  instead of
>> >  "ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV),
>> > dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped"
>> >
>> Yes.
>>
>> It is because you are looking at an uninstalled snmpd in a build
>> directory.
>>
>> In order to run gdb on that one you have to issue the command
>>
>> ../libtool --mode=execute gdb snmpd
>>
>> During make install libtool will perform the final linking so the
>> installed file will end up as an ELF file.
>>
>> /MF
>> >
>> > [root@volga agent]# pwd
>> > software/net-snmp-5.5/agent
>> > [root@volga agent]# file snmpd
>> > snmpd: POSIX shell script text executable   -----------------> ?
>> >
>> >
>> > I am not able to run gdb with this snmpd.
>> >
>> >
>> >
>> >
>> > [root@volga agent]# gdb  snmpd
>> > GNU gdb (GDB) Fedora (7.2-16.fc14)
>> > 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 "i686-redhat-linux-gnu".
>> > For bug reporting instructions, please see:
>> > <http://www.gnu.org/software/gdb/bugs/>...
>> > "/home/software/net-snmp-5.5/agent/snmpd": not in executable format:
>> > File format not recognized   ---------------------> ?
>> > (gdb)
>> >
>> >
>> >
>> >
>> > How should I compile to get all gdb symbols in snmpd ?
>> >
>> >
>> >
>> >
>> >
>> >
>> > Thanks...................
>> >
>> ------------------------------------------------------------------------------
>> > Write once. Port to many.
>> > Get the SDK and tools to simplify cross-platform app development. Create
>> > new or port existing apps to sell to consumers worldwide. Explore the
>> > Intel AppUpSM program developer opportunity.
>> appdeveloper.intel.com/join
>> > http://p.sf.net/sfu/intel-appdev
>> > _______________________________________________ Net-snmp-coders mailing
>> list [email protected]
>> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>>
>>
>>
>
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to