This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12937] Support optimized out / unused template methods


http://sourceware.org/bugzilla/show_bug.cgi?id=12937

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2011-10-19 17:19:59 UTC ---
We've discussed a few ways to fix this.

One way would be to have the compiler emit the out-of-line instances
to a special section, which could then be put into the .debug file.
Then, gdb could call dlopen to map this into the inferior.

Another way would be to write a GCC plugin to transform the out-of-line
instances into Python code using gdb's Python API.  This could be done,
e.g., using David Malcolm's plugin
(https://fedorahosted.org/gcc-python-plugin/)
and converting gimple to Python code.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]