PDA

View Full Version : Can TotalView save a core image of a running process?



PMDubuc
01-17-2008, 01:23 PM
I'm using TV on Linux x86_64. I wonder if there is a way to save a core image for later debugging the way you can with the gcore command in gdb.

Thanks,

PeterT-RogueWave
01-29-2008, 08:21 AM
> I'm using TV on Linux x86_64. I wonder if there is a way to save a core image for later debugging the way you can with the gcore command in gdb.

Well, sort of... We don't have a specific gcore command, but you can always change the Thread->Continuation Signal to something that will cause a core dump. After setting that and doing 'Go' the process should exit and dump a core file. (Make sure your limits allow a core file) I've used SIGILL (Illegal Instruction) and FPE in the past. Of course, you can't run the program from that point, as the core file load pretty much indicates a post-mortem debug session, instead of an active one. But that seemed to be true of gdb as well.

Regards,