This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/17004] print base::operator char * passes in cpexprs.exp, but only accidentally
- From: "dje at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 02 Jun 2014 18:56:28 +0000
- Subject: [Bug c++/17004] print base::operator char * passes in cpexprs.exp, but only accidentally
- Auto-submitted: auto-generated
- References: <bug-17004-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17004
--- Comment #3 from dje at google dot com ---
The attached example shows gdb not able to find operator char *, due to it
being looked up as operatorchar *. The key is to not cause the symtab with the
operator definition to be prematurely expanded, forcing gdb to try to look up
the operator in .gdb_index.
The attached example puts main in one .o, the class definition in the next, and
the operator definition in the last.
(gdb) p base::operator char*
There is no field named operatorchar *
--
You are receiving this mail because:
You are on the CC list for the bug.