Date: Wed, 16 Aug 2000 13:41:40 -0600 From: Wes Peters <wes@softweyr.com> To: Nicolas Leonard <nicolas.leonard@animaths.com> Cc: Samuel Tardieu <sam@inf.enst.fr>, hackers@FreeBSD.ORG Subject: Re: How to generate a core dump explicily Message-ID: <399AEE74.9366689F@softweyr.com> References: <00f101c00140$2a4b5a50$0f0210ac@masa.com> <2000-08-08-15-56-50%2Btrackit%2Bsam@inf.enst.fr> <011301c00146$c709f170$0f0210ac@masa.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?399AEE74.9366689F>