[Bug binutils/29573] addr2line doesn't display file/line for c++ variables

2022-09-20 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=29573 --- Comment #9 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3094c89e9ce3ae656ac56147ee34bf1f65e63d04 commit 3094c89e9ce3ae656ac56147ee34b

[Bug binutils/29573] addr2line doesn't display file/line for c++ variables

2022-09-20 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29573 Alan Modra changed: What|Removed |Added Target Milestone|--- |2.40 Resolution|---

[Bug binutils/29573] addr2line doesn't display file/line for c++ variables

2022-09-20 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29573 Alan Modra changed: What|Removed |Added Assignee|unassigned at sourceware dot org |amodra at gmail dot com --- Comme

[Bug binutils/29573] addr2line doesn't display file/line for c++ variables

2022-09-16 Thread trass3r at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29573 --- Comment #7 from trass3r --- I see. Your question remains though, why does it even compare the name after the address has already been checked? Sounds more like an assert(). -- You are receiving this mail because: You are on the CC list f

[Bug binutils/29573] addr2line doesn't display file/line for c++ variables

2022-09-15 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29573 --- Comment #6 from Alan Modra --- "int foo" is mangled to plain "foo", thus there is no difference between the symbol name and DW_AT_name. You are correct that DW_AT_linkage_name is needed for lookup_symbol_in_function_table to work with C++

[Bug binutils/29573] addr2line doesn't display file/line for c++ variables

2022-09-15 Thread trass3r at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29573 --- Comment #5 from trass3r --- Actually no. It works if you make it a global for some reason and that has no DW_AT_linkage_name either: int foo; -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/29573] addr2line doesn't display file/line for c++ variables

2022-09-15 Thread trass3r at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29573 --- Comment #4 from trass3r --- Interestingly lookup_symbol_in_function_table does the same thing. I guess it works cause bar also has a DW_AT_linkage_name. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/29573] addr2line doesn't display file/line for c++ variables

2022-09-14 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29573 --- Comment #3 from Alan Modra --- Created attachment 14337 --> https://sourceware.org/bugzilla/attachment.cgi?id=14337&action=edit weaken name match Use strstr to match source-level name in debug info against mangled symbol name. Is it ne

[Bug binutils/29573] addr2line doesn't display file/line for c++ variables

2022-09-14 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29573 Alan Modra changed: What|Removed |Added Last reconfirmed||2022-09-15 Summary|binutils d