From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RQ4hx-0001Fy-FT for mharc-grub-devel@gnu.org; Mon, 14 Nov 2011 17:08:53 -0500 Received: from eggs.gnu.org ([140.186.70.92]:57070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQ4ht-0001BM-8Q for grub-devel@gnu.org; Mon, 14 Nov 2011 17:08:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RQ4hr-0002O5-MG for grub-devel@gnu.org; Mon, 14 Nov 2011 17:08:49 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:59269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQ4hr-0002Nu-HO for grub-devel@gnu.org; Mon, 14 Nov 2011 17:08:47 -0500 Received: by bke17 with SMTP id 17so6340655bke.0 for ; Mon, 14 Nov 2011 14:08:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=Jcxt760c6Ytnf6HuJkTHBA5s/ZhFIdLtMXFNdJ5/iQk=; b=Qs0YW8AsdrwtTcFdE4HlZiCdI89gmQl+IiXriXhYqVO1q1k84/lkx4hihflBqiSbVI kmlf5A39bsppLe6Bi9UlRE1PkLGmSnkXmgkRI2gyYWVMAsQ5XAzyV1IxEXGVZbWhXMco /jsgWqbikRflhAssXXvC6T3G23m/ngUb2GwVA= Received: by 10.205.133.148 with SMTP id hy20mr13548698bkc.132.1321308526605; Mon, 14 Nov 2011 14:08:46 -0800 (PST) Received: from debian.x201.phnet (93-232.197-178.cust.bluewin.ch. [178.197.232.93]) by mx.google.com with ESMTPS id dq2sm34504621bkb.11.2011.11.14.14.08.44 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 Nov 2011 14:08:45 -0800 (PST) Message-ID: <4EC1916A.8030601@gmail.com> Date: Mon, 14 Nov 2011 23:08:42 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20111010 Iceowl/1.0b2 Icedove/3.1.15 MIME-Version: 1.0 To: The development of GRUB 2 , Lubomir Rintel Subject: Re: gdb script merged References: <4EC04228.6020906@gmail.com> In-Reply-To: <4EC04228.6020906@gmail.com> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig0928CF119F19CDEA6D92E2B5" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2011 22:08:50 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0928CF119F19CDEA6D92E2B5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I've created a branch "gdb" for gdb-serial stub. It doesn't all work nice and round (especially if you connect debugger before launching stub) but is useful On 13.11.2011 23:18, Vladimir '=CF=86-coder/phcoder' Serbinenko wrote: > Hello, all. Looking though archives I found old script by Lubomir Rinte= l > for gdb. I integrated it into our build system and committed, now you > just have to run gdb -x gdb_grub from grub-core directory. It's limited= > to platforms with predefined load address, so *-efi is excluded but all= > others platforms should work, didn't test it with anything else than > i386-pc though. > At first I wanted to install it as well but then I noticed that it has > an important problem: > - It uses insecure temporary files. While fine if you own current > directory (like grub-core), it has to use mktemp if to be installed > globally. > - I don't know how to implement the logic "check if kernel.exec is in .= , > if so use it, otherwise use @platformdir@/kernel.exec" in gdb scripts. > Note: @platformdir@ is expanded by automake. > Also I would prefer script to be less chatty and use python but it's no= t > very important. > I attach a simple patch to install those scripts if needed. > Also there is a serial-gdb patch in same series, while also interesting= > it would need more work (and can be integrated with my another work for= > backtracing on grub_fatal and exceptions) > --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig0928CF119F19CDEA6D92E2B5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk7BkWoACgkQNak7dOguQgm9HgEAuMCMRTVUGtaVvxIi4kZErG48 bOpqJwtntm/zyr1h8GkBAJaCLQxim/UxdYVFEahHfGK1Gay/wGELuZ47LdkDMMA2 =+2Kh -----END PGP SIGNATURE----- --------------enig0928CF119F19CDEA6D92E2B5--