This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/12937] New: Support optimized out / unused template methods
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 27 Jun 2011 16:32:51 +0000
- Subject: [Bug c++/12937] New: Support optimized out / unused template methods
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12937
Summary: Support optimized out / unused template methods
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@sourceware.org
ReportedBy: jan.kratochvil@redhat.com
This is more a GCC extension request but we need to formulate it first.
#include <map>
int
main ()
{
std::map <int, int> v { std::make_pair (1, 2) };
// v.clear ();
return v[1];
}
7 return v[1];
(gdb) p v.clear()
Cannot evaluate function -- may be inlined
after uncommenting the line in the source:
(gdb) p v.clear()
$1 = void
There should be for example some extra .text section in the separate .debug
info file containing all the unused methods for a template instance.
--
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.