Dumping a core from inside of process
Joshua Oreman
oremanj at get-linux.org
Thu Aug 21 16:20:27 PDT 2003
On Thu, Aug 21, 2003 at 10:12:49PM +0000 or thereabouts, Artem 'Zazoobr' Ignatjev wrote:
> At Thu, 21.08.2003, 22:02, Alexander Kabaev wrote:
> > Look for abort() or SIGABRT.
> Thanks so far for you and Lev.. Is there the way to specify struct
> sigcontext to it? I still wish to have `correct' registers values to be
> written into coredump, those that were when signal happened, and not
> that were when i did abort()ed manually
Not sure if it would work, but try
__asm__ __volatile__ ("pusha");
at the top of the cleanup function and
__asm__ __volatile__ ("popa");
just before you dump core.
-- Josh
> --
> Artem 'Zazoobr' Ignatjev <timon at memphis.mephi.ru>
>
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
More information about the freebsd-hackers
mailing list