[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option
--- Additional Comments From nickc at redhat dot com 2010-04-21 07:02 --- Hi dzidzitop, Oops - sorry about that. I uploaded the wrong patch file by mistake. Please try out the new one instead. With this patch applied, using your test case I get: % addr2line -e bbb.exe 0x4013c0 bbb.cpp:4 Cheers Nick -- What|Removed |Added Status|NEW |WAITING http://sourceware.org/bugzilla/show_bug.cgi?id=11512 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option
--- Additional Comments From nickc at redhat dot com 2010-04-21 07:01 --- Created an attachment (id=4744) -- (http://sourceware.org/bugzilla/attachment.cgi?id=4744action=view) Correct patch: Adds section address to filename symbols' values -- What|Removed |Added Attachment #4740 is|0 |1 obsolete|| http://sourceware.org/bugzilla/show_bug.cgi?id=11512 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option
--- Additional Comments From dzidzitop at lavabit dot com 2010-04-21 12:36 --- Good job Nick. This works for me, at least under Ubuntu. Thanks. -- What|Removed |Added Status|WAITING |RESOLVED Resolution||WORKSFORME http://sourceware.org/bugzilla/show_bug.cgi?id=11512 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option
--- Additional Comments From dzidzitop at lavabit dot com 2010-04-21 12:46 --- By the way ! offset + sec_vma = file_addr ! offset + sec_vma - file_addr = maxdiff) This code from your patch. It could be re-written to store offset + sec_vma - file_addr into a variable, say x, and then check for x = 0 x = maxdiff. It is unsufficient, but anyway :) -- http://sourceware.org/bugzilla/show_bug.cgi?id=11512 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option
--- Additional Comments From nickc at redhat dot com 2010-04-20 17:10 --- Created an attachment (id=4740) -- (http://sourceware.org/bugzilla/attachment.cgi?id=4740action=view) Add section address to symbol's value when looking up filenames -- http://sourceware.org/bugzilla/show_bug.cgi?id=11512 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option
--- Additional Comments From nickc at redhat dot com 2010-04-20 17:12 --- Hi dvidvitop, I have uploaded a patch that *might* resolve the problem for you. Please try it out and let me know how you get on. If the patch does not work, please could you include some more detailed information on how to reproduce the problem. A small working example, based on object files not C++ source files, would be ideal. Cheers Nick -- What|Removed |Added Status|NEW |WAITING http://sourceware.org/bugzilla/show_bug.cgi?id=11512 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option
--- Additional Comments From dzidzitop at lavabit dot com 2010-04-20 17:32 --- Thanks Nick, but the patch is unlikely to help. The bug is in the other binutils program - addr2line. This patch changes something within the objdump program. Actually, the bug is somewhere inside the BFD library. I see now how to create attachments here. I will submit the executable with reveals the bug. Addresses to test the behaviour of the addr2line are in the list below (function names are obtained by means of custom manipulating with BFD): afc::backtrace(void**, unsigned int) 0x402c97 at dyncast.cc:491 afc::StackTrace::StackTrace() 0x402e92at dyncast.cc:527 f() 0x401613 at dyncast.cc:23 g() 0x401675 at dyncast.cc:30 main 0x4016f8 at dyncast.cc:34 _onexit 0x4010db at dyncast.cc mainCRTStartup 0x401178 at dyncast.cc unknown 0x7c817077 at unknown source Correct file names contain stack_trace_win32.cpp and StackTrace.cpp in the path. -- What|Removed |Added Status|WAITING |NEW http://sourceware.org/bugzilla/show_bug.cgi?id=11512 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option
--- Additional Comments From dzidzitop at lavabit dot com 2010-04-20 18:05 --- Created an attachment (id=4741) -- (http://sourceware.org/bugzilla/attachment.cgi?id=4741action=view) A file to demonstrate the bug Forget about previous application. It is too large to be sumbited here. Attached is a tiny program with itself displays the address of a function f(). It is: 004013C0 When I use addr2line to obtain the filename and the line number for it I get: C:\Projects\AFC\bbb\Debugaddr2line -e bbb.exe 0x004013C0 cygming-crtend.c:0 -- http://sourceware.org/bugzilla/show_bug.cgi?id=11512 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option
-- What|Removed |Added Attachment #4741 is|0 |1 obsolete|| http://sourceware.org/bugzilla/show_bug.cgi?id=11512 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option
--- Additional Comments From dzidzitop at lavabit dot com 2010-04-20 18:08 --- Created an attachment (id=4742) -- (http://sourceware.org/bugzilla/attachment.cgi?id=4742action=view) A file to demonstrate the bug -- http://sourceware.org/bugzilla/show_bug.cgi?id=11512 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option
-- What|Removed |Added Attachment #4742|A file to demonstrate the |A file to demonstrate the description|bug |bug (the name of the file ||displayed by addr2line ||should be bbb.cpp) http://sourceware.org/bugzilla/show_bug.cgi?id=11512 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option
-- What|Removed |Added GCC host triplet||WinXP 32bit GCC target triplet||WinXP 32bit PE http://sourceware.org/bugzilla/show_bug.cgi?id=11512 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils