From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Sat, 24 Oct 2009 18:25:38 +0200 Subject: [Buildroot] [RFC; PATCH] Use gdbserver from external toolchain In-Reply-To: <2c9a759f0910220247u18c004epcb564aa65aa02d2b@mail.gmail.com> References: <2c9a759f0910220247u18c004epcb564aa65aa02d2b@mail.gmail.com> Message-ID: <20091024182538.69233120@surf> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi, Le Thu, 22 Oct 2009 11:47:52 +0200, Anders Darander a ?crit : > I've attached a patch (formatted by git), which adds the possibility > to have buildroot install the already compiled gdbserver from an > external toolchain. > > To make sure that debuging works, it is preferred if both the host > crosscompiler gdb and gdbserver is built from the same gdb version. If > we take the gdbserver from the external toolchain, this is guaranteed. > > I'm not sure that the implementation is the best, it migth be a > little bit "hackish". Looking forward to some comments for > improvement. This feature is of course very welcome, but I'd like to see the external toolchain support to be extended to toolchains not generated by Crosstool-NG (Codesourcery toolchains, for example, are still on my TODO-list). Can we imagine a way of making this more generic ? Maybe we could detect the toolchain ?type? and act differently depending on this type ? Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com