I would like to force a core dump at a specific location in my C++ application.
I know I can do it by doing something like:
int * crash = NULL; *cras
#include #include int main() { printf("\n"); printf("Process is aborting\n"); abort(); printf("Control not reaching here\n"); return 0; }
use this approach wherever you want :)