|
From: Earnie B. <ear...@ya...> - 2003-07-25 12:54:43
|
Luke Dunstan wrote: > > I doubt that it it is possible to get line numbers. The GNU linker can > generate map files (-Wl,-Map,filename.map) but they don't look like MSVC > ones, and anyway it would only tell you the function names, not the line > numbers. In case you didn't know, you can manually look up a line number for > a code address with the addr2line command: > > addr2line -e hello.exe 0x00401234 > ``objdump -Slp foo.exe > /tmp/odmp'' is what I use. Foo.exe must be compiled with -g switch on. -O0 switch may be needed if you're in deep debug mode. Earnie. |