In the following code, when constructing the string url
, the execution halts. No error, the execution doesn't stop, it just hangs there, and I can't press step over. Everything seems fine in the debugger, no nullpointers, the baseURL is set properly. RapidXML's value()
function returns char*
.
Am I missing something?
With Eclipse Indigo on Ubuntu 12.04
rapidxml::xml_node<> *galleryNode = myNode->first_node("gallery");
std::string baseURL = galleryNode->first_attribute("url")->value();
galleryNode = galleryNode->first_node("filename");
while ( galleryNode != NULL )
{
std::string url(baseURL);
url.append(galleryNode->value());
gallery.AddImageUrl(url);
galleryNode = galleryNode->next_sibling();
}
The cause was the python enabled gdb in eclipse. I downloaded it with svn, then altered the gdbinit
file. Viewing variables was much easier while debugging, but apparently it has quite annoying side effects.