From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GRUB 2 <grub-devel@gnu.org>,
Lubomir Rintel <lkundrak@v3.sk>
Subject: Re: gdb script merged
Date: Mon, 14 Nov 2011 23:08:42 +0100 [thread overview]
Message-ID: <4EC1916A.8030601@gmail.com> (raw)
In-Reply-To: <4EC04228.6020906@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1486 bytes --]
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 'φ-coder/phcoder' Serbinenko wrote:
> Hello, all. Looking though archives I found old script by Lubomir Rintel
> 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 not
> 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)
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
prev parent reply other threads:[~2011-11-14 22:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-13 22:18 gdb script merged Vladimir 'φ-coder/phcoder' Serbinenko
2011-11-14 22:08 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EC1916A.8030601@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
--cc=lkundrak@v3.sk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.