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++/17004] print base::operator char * passes in cpexprs.exp, but only accidentally


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.


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