From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 27 23:52:48 2015 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CFFAD5EA; Fri, 27 Mar 2015 23:52:48 +0000 (UTC) Received: from mail-qc0-x236.google.com (mail-qc0-x236.google.com [IPv6:2607:f8b0:400d:c01::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 81D47ABC; Fri, 27 Mar 2015 23:52:48 +0000 (UTC) Received: by qcbjx9 with SMTP id jx9so30280656qcb.0; Fri, 27 Mar 2015 16:52:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type; bh=pKDfa2eetgd6WU6iPMHFrt5aAk+2VWhhhxBBa/m2eis=; b=AW+ryVc6qX8Mt/+G1hRwV6weyoJX8hgWSelucx685+hnHywPEfDyVjdIeEX7veKUFX og3JzFfzGLoUyZ+JDwPZZvY1sLsqta2AK0V3rZ7FXXWh+dD/PGG6dAxKtolkrlRcFRG+ Be3/fxDUXpkWiv32L01hULa4WNKlpc6cgmUfTxssbaKsFJG0AN9c3CO14tkCTriaSc3h sn+7mNDPpe5x5y0Bv+NBh/ZioCNuhzZUytAaACjO7ND/tUyztt0dWUSVR6ga3IwgNofY DE96uw9dy9s6YTLlCAA98B7V11raL74st56FdybIaCNbCep0FZJDuEDu9d5TiUMYvrOm NyGA== X-Received: by 10.55.50.203 with SMTP id y194mr45486673qky.8.1427500367620; Fri, 27 Mar 2015 16:52:47 -0700 (PDT) Received: from kan ([2601:6:6780:7e0:226:18ff:fe00:232e]) by mx.google.com with ESMTPSA id n41sm2594786qkh.3.2015.03.27.16.52.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Mar 2015 16:52:46 -0700 (PDT) Date: Fri, 27 Mar 2015 19:52:37 -0400 From: Alexander Kabaev To: Chagin Dmitry Subject: Re: Linux core under FreeBSD. Message-ID: <20150327195237.3bddcb31@kan> In-Reply-To: <20150327154348.GA90856@dchagin.static.corbina.net> References: <20150327124058.GA3991@brick.home> <20150327154348.GA90856@dchagin.static.corbina.net> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/n_Sh5U6iDnAmoS4fEe2W7EJ"; protocol="application/pgp-signature" Cc: hackers@FreeBSD.org, Edward Tomasz Napierala X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2015 23:52:48 -0000 --Sig_/n_Sh5U6iDnAmoS4fEe2W7EJ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 27 Mar 2015 18:43:48 +0300 Chagin Dmitry wrote: > On Fri, Mar 27, 2015 at 01:40:58PM +0100, Edward Tomasz Napierala > wrote: > > Is there a way to debug a core generated by Linux process running > > under Linuxulator on 11-CURRENT? Thanks! > >=20 > ptrace implemented only for i386, so ktrace/kdump and > machdep.uprintf_signal=3D1 >=20 IFF FreeBSD had implemented dumping the core in format compatible with Linux gdb, then normal Linux gdb binary can be used to examine cores, ptrace support is not required for that. Since sysentvec already provides sv_coredump entry, it should not even be too hard to implement this. --=20 Alexander Kabaev --Sig_/n_Sh5U6iDnAmoS4fEe2W7EJ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlUV7UcACgkQQ6z1jMm+XZbaXwCdEYSaj6M08YmXd3q4Kj37qSpb JYEAoK+Cs0S6mNEzwa2TZqes7KSo37re =4fDx -----END PGP SIGNATURE----- --Sig_/n_Sh5U6iDnAmoS4fEe2W7EJ--