[Buildroot] [PATCH 3/3] buildroot: toolchain: Allow to build gdbserver when external toolchain is selected.
Sonic Zhang
sonic.adi at gmail.com
Wed Aug 8 02:39:56 UTC 2012
On Tue, Aug 7, 2012 at 11:22 AM, Zhang, Sonic <Sonic.Zhang at analog.com> wrote:
> Hi Thomas,
>
>>-----Original Message-----
>>From: Thomas Petazzoni [mailto:thomas.petazzoni at free-electrons.com]
>>Sent: Monday, August 06, 2012 8:55 PM
>>To: Sonic Zhang
>>Cc: Peter Korsgaard; buildroot at busybox.net; buildroot-devel at lackfin.uclinux.org;
>>Zhang, Sonic
>>Subject: Re: [Buildroot] [PATCH 3/3] buildroot: toolchain: Allow to build gdbserver
>>when external toolchain is selected.
>>
>>Le Mon, 6 Aug 2012 19:17:27 +0800,
>>Sonic Zhang <sonic.adi at gmail.com> a écrit :
>>
>>> From: Sonic Zhang <sonic.zhang at analog.com>
>>>
>>> Signed-off-by: Sonic Zhang <sonic.zhang at analog.com>
>>> ---
>>> toolchain/gdb/Config.in | 3 +--
>>> 1 files changed, 1 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/toolchain/gdb/Config.in b/toolchain/gdb/Config.in
>>> index fd6956b..8a440d8 100644
>>> --- a/toolchain/gdb/Config.in
>>> +++ b/toolchain/gdb/Config.in
>>> @@ -14,14 +14,13 @@ comment "Gdb debugger for the target needs WCHAR
>>support in toolchain"
>>>
>>> config BR2_PACKAGE_GDB_SERVER
>>> bool "Build gdb server for the Target"
>>> - depends on !BR2_TOOLCHAIN_EXTERNAL
>>> help
>>> Build the gdbserver stub to run on the target.
>>> A full gdb is needed to debug the progam.
>>>
>>> config BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
>>> bool "Copy gdb server to the Target"
>>> - depends on BR2_TOOLCHAIN_EXTERNAL
>>> + depends on BR2_TOOLCHAIN_EXTERNAL
>>&& !BR2_PACKAGE_GDB_SERVER
>>> help
>>> Copy the gdbserver provided by the external toolchain to the
>>> target.
>>
>>Is this really a good idea? For compatibility reasons, we generally
>>want the gdbserver on the target to have the same version as the cross
>>gdb on the development machine. Therefore, in the external toolchain
>>case, it sounds like a really bad idea to let the user build its own
>>gdbserver instead of using the one of the external toolchain.
>>
>
> This is an option for developers who want to develop/debug gdb server or want to use an alternative version.
> The developer is responsible to ensure the compatibility.
>
>>I know the Blackfin toolchains are not providing their own gdbserver
>>(but they provide a cross gdb), but in my opinion, it's a bug that
>>should be fixed in the build process of the Blackfin toolchains: they
>>should include their own gdbserver, just like the Linaro and Sourcery
>>CodeBench toolchains do.
>>
>
> I include ADI blackfin GNU toolchain developer Stuart for your question.
>
Because Stuart is out these days, I cc David as well.
Regards,
Sonic
More information about the buildroot
mailing list