On 10/26/2009 03:02 PM, Mehul Ved wrote:
> On Mon, Oct 26, 2009 at 12:14 PM, Varrun Ramani <[email protected]> wrote:
>> 2009/10/26 Girish Venkatachalam <[email protected]>
>>
>>>
>>> -g is for generating debug symbols so you can use the executable with
>>> gdb(1).
>>>
>>> I did not understand what "debug symbols" is.Could you elucidate?
> 
> http://en.wikipedia.org/wiki/Debug_symbol
> 
> I have faced it sometimes that I need to give backtrace for certain
> files that have segfaulted. In that case, I needed to run it through
> gdb. But, to get any useful information it had to be compiled with
> debug symbols enabled.

In RPM based distributions, the build system generally creates a
separate debug/debuginfo package that you can install to get the debug
symbols rather than recompile anything. For example, in Fedora, you can
just do

# debuginfo-install foo

http://fedoraproject.org/wiki/StackTraces

Debian and derivates don't do this yet but apparently a major goal for
the next release.

Rahul
_______________________________________________
To unsubscribe, email [email protected] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to