From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23084 invoked by alias); 20 Dec 2013 19:41:24 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 23075 invoked by uid 89); 20 Dec 2013 19:41:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 20 Dec 2013 19:41:23 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 281BF33F5EA; Fri, 20 Dec 2013 19:41:21 +0000 (UTC) From: Mike Frysinger To: gdb@sourceware.org Subject: Re: Kernel debugging Date: Fri, 20 Dec 2013 19:41:00 -0000 User-Agent: KMail/1.13.7 (Linux/3.12.1; KDE/4.6.5; x86_64; ; ) Cc: Nikos Balkanas References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart12628233.B6QLFq6TDG"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201312201441.24149.vapier@gentoo.org> X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00070.txt.bz2 --nextPart12628233.B6QLFq6TDG Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 731 On Thursday 19 December 2013 13:51:36 Nikos Balkanas wrote: > I am developing a module for the Linux kernel. For that i have setup > the exact environment in Virtual Box and have loaded the (guest) > kernel with -g and removed the -frame-pointers. I will run gdb from > host and try to debug kernel on guest system. >=20 > What is the best approach for this scenario? GDBserver or gdbstubs?. > Gdb server is good only for userspace debugging. Will gdbstubs work? > Are they included in the recent gdb sources, or are the ones to use > since 2003 from sourceforge? I am also looking for instructions on how > to implement them. Any hints? the kernel has a built in gdb stub. look for "kgdb" in the=20 documentation/kconfig. -mike --nextPart12628233.B6QLFq6TDG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJStJ1kAAoJEEFjO5/oN/WBldsQAJ1/Y86FDl/EaPQiUwL1w9jX mf1LNVRtI2S3WaN5pd+kJoN3ehjbmzYbOUSIZ7VgfleQgwnzy9jMh2683XawhciE V5A8uaGMd277YTy/Y/D8YjjwdmYlNfneX39DqGpS5N4v5hPIkY93dstREyGzoLqq 5w+JPsRpe8TZBfZYIsuX5buVL7gz1SOym3g+7DZ1fwoVsO+l+h5UK2wJ9mKLWFcL JECdYzF+InhoVkTMap0gT7W6puskOgAnxhm+t8HW8MxqcgPF5ndngM7ja7yh7BAV wgbf1j6g84R9BbSipQ2UGLusYKgXB7WOhZyHUME1ftKSrC0kcWfP3/mKf5ES2E3D Uw4IMxKc7EZho9IUutEH7TMCvRyLFKFHgcyBOCskYzkR21INvU+ZaJ/qkQ4YjL5a qktHe5Sd+ItHwgysZO9oCXBs5n/5Z83Nq2ju6jkUdjGT+YywEjzKmfJ6LnXnL5mM jQ2aknoUTHithTSJnrDkMoTESUB57xIdpaLFg5grsqfHAmbo7DVrq1Oi3gYF/+tc 6V5XA6xfIk2MZLtTz5yLT2pMhrUOcC4gn7DCFq6X0IYQPfUTQM0WeKe9b6rhzpwd HE8YiMvkStEsKNFj+xkI9ahSxYtxeGhFGleS1BjIEuPgSNwFCwklhqBS0TrOXE0m Eenn18SsFJC2GV61eGWD =jZ2f -----END PGP SIGNATURE----- --nextPart12628233.B6QLFq6TDG--