[lug] good assert library
tromey at redhat.com
Wed Sep 18 14:21:25 MDT 2002
>>>>> ">" == Chan Kar Heng <karheng at softhome.net> writes:
>> i tried this... gcc -rdynamic -g -O0 a.c
>> and i get a lot of hex addresses instead of function names...
>> is this the expected output?
You can run the output through addr2line to get function names.
That's what we do in libgcj to get stack traces.
However, my advice is to avoid doing this sort of thing unless you
really need to. Generally it is easier and more useful to just run
gdb on your program.
More information about the LUG