Nicolas Leonard wrote:
>
> Sorry, I wasn't precise enough .
>
> In fact, I caught the SIGABRT signal (and the others signals which are
> ending the program) and I'm doing some ending stuff, and after that, I
> would like to dump a core file.
>
> I could remove the handler of SIGABRT after my ending suff done, and kill
> myself another time, but I would like to know if it's possible to dump the
> core explicitly. (With a dumpcore() function or whatever )
This one works:
void dumpme()
{
int *p = 0;
*p = 0xdeadbeef;
}
int main()
{
dumpme();
}
--
"Where am I, and what am I doing in this handbasket?"
Wes Peters Softweyr LLC
[EMAIL PROTECTED] http://softweyr.com/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message