I'm having trouble getting GDB to show me information for the basic_string
object. GDB insists that it is NULL, but it is an automatic variable and
can't be NULL. Empty sure, but not NULL. If I copy the contents to a char*
GDB is happy to show me the string contents. Calling c_str() (or any other
method such as size()) on the string also results in an error, saying that
no overloaded function could resolve the call. Is the debugger just too
confused? We use these everywhere, and they seem to work fine, but it's
makes debugging a pain.

This code works fine under FreeBSD; basic_string behaves like every other
c++ class.

Running RedHat 6.2. Any ideas??

If you think you can help in any way PLEASE send an email to

mailto:[EMAIL PROTECTED]   since I can't get usenet news at work right now
(and I don't like deja)

and I will thank you profusely.

-Gary

Reply via email to