
23 Jul
2012
23 Jul
'12
1:26 p.m.
I have a multi-threaded program that has just SEGV'd. I want to extract a chunk of data from the program to run in a test program to try and reproduce the problem. Is there a way of telling gdb to dump a chunk of data to a file? The data in question is a regular C string. I tried using p fopen() but it seems that you can't do that sort of thing in a multi-threaded program. p open() fails and I can't work out why. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/