From owner-freebsd-x11@freebsd.org Mon Feb 22 10:55:31 2016 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E646AAB0C9C for ; Mon, 22 Feb 2016 10:55:31 +0000 (UTC) (envelope-from jean-sebastien.pedron@dumbbell.fr) Received: from mail.made4.biz (mail.made4.biz [IPv6:2001:41d0:2:c018::1:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B30BB1C66 for ; Mon, 22 Feb 2016 10:55:31 +0000 (UTC) (envelope-from jean-sebastien.pedron@dumbbell.fr) Received: from [176.158.145.63] (helo=magellan.dumbbell.fr) by mail.made4.biz with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86 (FreeBSD)) (envelope-from ) id 1aXo9J-0001Ug-7u; Mon, 22 Feb 2016 11:55:29 +0100 Subject: Re: Guide to contribute to kernel video drivers To: Tommi Pernila References: <56C708E9.8050203@FreeBSD.org> <20160220104349.2bc8b22a@fujitsu> <56C8F89D.5060703@dumbbell.fr> Cc: freebsd-x11@freebsd.org From: =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= X-Enigmail-Draft-Status: N1110 Message-ID: <56CAE91D.7060905@dumbbell.fr> Date: Mon, 22 Feb 2016 11:55:25 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MCjfSjmfXbHkofAx5g4bxEG3moeDa6Ekk" X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2016 10:55:32 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MCjfSjmfXbHkofAx5g4bxEG3moeDa6Ekk Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 22/02/2016 11:32, Tommi Pernila wrote: > > Do I right understand that the only way to debug a kernel is to c= rash > > it and then analyze a dump using gdb? Is it possible to attach to= a > > running kernel remotely? >=20 > It's probably possible to debug a live kernel, but I never did this= > because I don't have a working serial remote access. >=20 > Wouldn't this be possible over ssh? Hi! This would be the same as connecting to the host with ssh then run kgdb locally. You need to have a working sshd on the tested host and a working network stack. Depending on what you do in the kernel, this may not be the case. Gdb over serial line works because it's far easier for the kernel to maintain a working state for a simple serial link than a NIC and userland applications. --=20 Jean-S=C3=A9bastien P=C3=A9dron --MCjfSjmfXbHkofAx5g4bxEG3moeDa6Ekk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJWyukdXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NzA4N0ZEMUFFQUUwRTEyREJDNkE2RjAz OUU5OTc2MUE1RkQ5NENDAAoJEDnpl2Gl/ZTMIHUP+gKKDBcznifsLPme4dWwI55i 62L1vARPjSaHnRdzFnDgYWDzEQlC/Dvf96IMyAQ+WuIc5tto0SlWMQfE7GD3HvkN B6GpdZxd9sdoY5ftykKs189o9dFicAXz6CNv6Gc/GB+EYyQVi5ptQBSGSzRV3ASm ezwdy5Vyhxd2akqMAsy9kL3N4K2W9HR6/IU2yBLCXMRexmSAv1PQpwlZZP+5KygE z0NHoFzUbfGi5k7jQNSK0uWTzlZQp7dUN7UzxyG1hmltyu15SOSSBTw4p9iF4g6r Ce1Hvj2H0EBxpXa7HhrbAzHQl1XDgaha2VBsKjzeXDBAk+u4bsS1F0nrRbU2nhax JnRCQwQapHGaUPtH2gavt70X0bmApY+gF+PWM3PGCLKK7PONfITILtoQR0s97AlH q5+s48Lk+4Fm29QmhyAEA6n9F+eO5KDGsuosDUPgqC5vgtRU3cWUt1YbyGenHZCr orD0eJwlgVD+cslnhYXqiddVLgYiX7GtCsx1vBjADVBzu8UFAdPqm6H8df0a28PX vDM3/mAKdsxZhWhAm2Vqndy22Gx5RAslUmZIDJzOR15wsrHXOEDKw4XUjq/KV300 ihrU1i6bLOeXagYPd5d+H8WWstHqSPVNeJCZWjhRXWPmrtBRocSWkehYLTXt5ViF 2CJ++hz2q6M+dtuDLg9h =8n+d -----END PGP SIGNATURE----- --MCjfSjmfXbHkofAx5g4bxEG3moeDa6Ekk--