From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 21 16:20:27 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26F8C16A4C0 for ; Thu, 21 Aug 2003 16:20:27 -0700 (PDT) Received: from webserver.get-linux.org (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id DA76A43FF2 for ; Thu, 21 Aug 2003 16:20:25 -0700 (PDT) (envelope-from oremanj@webserver.get-linux.org) Received: (qmail 15021 invoked by uid 1000); 21 Aug 2003 23:20:23 -0000 Date: Thu, 21 Aug 2003 16:20:23 -0700 From: Joshua Oreman To: Artem 'Zazoobr' Ignatjev Message-ID: <20030821232023.GA14865@webserver> References: <1061503060.1030.4.camel@timon.nist> <20030821180210.44072108.ak03@gte.com> <1061503968.1030.11.camel@timon.nist> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1061503968.1030.11.camel@timon.nist> User-Agent: Mutt/1.4.1i cc: hackers@freebsd.org Subject: Re: Dumping a core from inside of process X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 23:20:27 -0000 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 > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"