Re: GDB in Lenny

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





I Rattan wrote:
> 
> 
> 
> On Fri, 27 Nov 2009, Sanyi wrote:
> 
>>
>> Hi .
>>
>> I'm trying to debug my example program with GDB. My question is why GDB
>> do
>> not show the simbolic information. (e.g Line number and vars)
> 
> Did you compile with -g flag?
> -ishwar
> 
> 

Yes I did. Finaly I found the problem. I found the solution described here 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=227097

I have installed the libc6-dbg_2.3.2.ds1-12_i386.deb package from the ftp
repo and now it's working 

I don't know why in the package list is not mentioned 
http://packages.debian.org/lenny/gdb

Now after i ran GDB . It looks like this
server:/home/sanyi/ALP/ch01# gdb reciprocal
GNU gdb 6.8-debian
Copyright (C) 2008 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 "i486-linux-gnu"...
(gdb) run
Starting program: /home/sanyi/ALP/ch01/reciprocal

Program received signal SIGSEGV, Segmentation fault.
0xb7591358 in ____strtol_l_internal () from /lib/i686/cmov/libc.so.6
(gdb) where
#0  0xb7591358 in ____strtol_l_internal () from /lib/i686/cmov/libc.so.6
#1  0xb75910c0 in strtol () from /lib/i686/cmov/libc.so.6
#2  0xb758de21 in atoi () from /lib/i686/cmov/libc.so.6
#3  0x08048485 in main (argc=1, argv=0xbfde47b4) at main.c:6
(gdb)

-- 
View this message in context: http://old.nabble.com/GDB-in-Lenny-tp26545396p26555008.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux