Host Operating System Information and Version: Windows XP 32 SP2 Russian
GCC Version: 3.4.5 (mingw special)
Binutils Version: 2.19.1
Build Environment: cmd.exe (most cases), Code::Blocks
Problem description: addr2line can't resolve line number in some circumstances, when compiling with -g switch. It returns 0 for line number (0x40a1df reported by Test.exe):
addr2line -e Test.exe -f 0x40a1df
It is impossible to reproduce bug without files: commont.h; commont.cpp; debug.h; debug.cpp; sterror.h; sterror.cpp and cttypes.h. So I decide to send you compiled program with main.cpp file only. The bug appears, when compiled with -g switch and dissapears for -ggdb switch. With GCC Version: 3.4.2 there is no such problem.
P.S. Sorry for my english. :)