I’m having trouble obtaining a useable call-stack from the debugger when my program crashes. When the crash occurs, the debugger breaks but instead of showing me the line which caused the crash, it shows a “Frame not in window” message. The call-stack is just a couple raw addresses. Here is a minimal reproduction of the issue.
#include <cassert>
#include <iostream>
int main() {
assert(false); // crashes here
std::cout << "hello world" << std::endl;
return 0;
}
How can I get the debugger to correctly tell me which line is triggering the crash? I’m using VisualGDB 5.3R to cross compile and deploy the project to a BeagleBoneBlack running Debian 9.5.