This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/12937] Support optimized out / unused template methods
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 19 Oct 2011 17:19:59 +0000
- Subject: [Bug c++/12937] Support optimized out / unused template methods
- Auto-submitted: auto-generated
- References: <bug-12937-4717@http.sourceware.org/bugzilla/>
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.