From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/3] debug: provide an option to copy the gdbserver to the target
Date: Wed, 6 Jun 2012 21:36:42 +0200 [thread overview]
Message-ID: <20120606213642.062a0bab@skate> (raw)
In-Reply-To: <CAAXf6LXCk=P8o--c9u8Usq4U6Gz9Rmnr9yzh20c3d-3LJj+g1A@mail.gmail.com>
Le Wed, 6 Jun 2012 12:16:54 +0200,
Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> a ?crit :
> With this change, buildroot will no longer present the option of
> building gdbserver itself. If you have an external toolchain, it is
> now mandatory for it to contain gdbserver (if you want it of course).
Correct.
> I'm not sure if we can always expect this.
I would say it is the case for most external toolchains that exist
today, so it sounds like (at least to me) like a reasonable solution.
> In my case, gdb was built by the toolchain, and gdbserver by
> buildroot. For me it makes sense to follow your strategy and have
> gdbserver built by crosstool-ng instead (and use that as custom
> external toolchain).
Building gdb and gdbserver separately is, IMO, a recipe for disaster.
Even though the gdb remote protocol is supposed to be stable, my
experience is that using a different version for gdb and gdbserver
often causes problems.
> But maybe there are cases where custom external toolchains do not
> contain gdbserver already, and the user would like buildroot to build
> it? In that case, we could consider changing the depend line to:
> depends on BR2_TOOLCHAIN_EXTERNAL_CUSTOM || !BR2_TOOLCHAIN_EXTERNAL
>
> What do you think? Should we cater for this?
Do you have a practical usage for this?
Generally speaking, I'd prefer if we handle really useful use cases,
and to not complexify Buildroot with hypothetic and complex use cases.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2012-06-06 19:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-14 22:49 [Buildroot] [pull request] Pull request for branch for-2011.11/debugging-improvements Thomas Petazzoni
2012-03-14 22:49 ` [Buildroot] [PATCH 1/3] debug: do not force installation of gdbserver Thomas Petazzoni
2012-03-14 22:49 ` [Buildroot] [PATCH 2/3] debug: provide an option to copy the gdbserver to the target Thomas Petazzoni
2012-03-15 22:05 ` Peter Korsgaard
2012-04-29 21:13 ` Daniel Nilsson
2012-06-06 10:16 ` Thomas De Schampheleire
2012-06-06 19:36 ` Thomas Petazzoni [this message]
2012-06-07 13:49 ` Thomas De Schampheleire
2012-03-14 22:49 ` [Buildroot] [PATCH 3/3] config: improve help text and prompt for debugging related options Thomas Petazzoni
2012-03-15 22:16 ` Peter Korsgaard
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=20120606213642.062a0bab@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox