From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH V2 6/9] package/gdb: Add C-SKY support
Date: Sun, 26 May 2019 22:56:12 +0200 [thread overview]
Message-ID: <20190526225612.333bad27@windsurf> (raw)
In-Reply-To: <1557305915-11247-6-git-send-email-guoren@kernel.org>
Hello,
On Wed, 8 May 2019 16:58:32 +0800
guoren at kernel.org wrote:
> From: Guo Ren <ren_guo@c-sky.com>
>
> Add gdb build for C-SKY Architecture.
I think this should explain what is supported and not supported:
- Building host-gdb ?
- Building gdbserver for the target ?
- Building full gdb for the target ?
>
> Signed-off-by: Guo Ren <ren_guo@c-sky.com>
> ---
> package/gdb/Config.in.host | 1 +
> package/gdb/gdb.hash | 2 ++
> package/gdb/gdb.mk | 7 +++++++
> 3 files changed, 10 insertions(+)
>
> diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host
> index 969168f..0aa7d0a 100644
> --- a/package/gdb/Config.in.host
> +++ b/package/gdb/Config.in.host
> @@ -48,6 +48,7 @@ choice
> prompt "GDB debugger Version"
> default BR2_GDB_VERSION_8_1
> depends on !BR2_arc
> + depends on !BR2_csky
So building host-gdb is not possible ? Which means remote debugging is
not possible ?
This seems a bit odd because board/csky/readme.txt precisely suggests
to use host-gdb:
../host/bin/csky-linux-gdb -x ../../board/csky/gx6605s/gdbinit vmlinux
> help
> Select the version of gdb you wish to use.
>
> diff --git a/package/gdb/gdb.hash b/package/gdb/gdb.hash
> index 1104da5..90a60b0 100644
> --- a/package/gdb/gdb.hash
> +++ b/package/gdb/gdb.hash
> @@ -6,3 +6,5 @@ sha512 2aa81cfd389bb48c35d7d9f95cc10e88b4f7ad4597bdde0f8f1fd312f60f10d9fb2cc6e5
>
> # Locally calculated (fetched from Github)
> sha512 8303e399e396f5c15dc976e48503fc7d45a720dd1a470443f755c5f2458d092b4392e7ae582abc251bc4b43a778ad784f764286a2a05abfc1649cbeeeb6e7d15 gdb-arc-2018.09-release-gdb.tar.gz
> +# Locally calculated (fetched from https://github.com/c-sky/binutils-gdb)
> +sha512 c421e1f3c0d6cfb3c04544573c0c4b0075c8d8e3d563c6c234fcc1e4c2167ab203d1e57aec3b58abd348dc46f8cf9b47b753d3a43dba3ea970c9c9a6bd78c07b gdb-4ecb98fbc2f94dbe01b69384afbc515107de73df.tar.gz
> diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk
> index a926961..460d21f 100644
> --- a/package/gdb/gdb.mk
> +++ b/package/gdb/gdb.mk
> @@ -14,6 +14,13 @@ GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
> GDB_FROM_GIT = y
> endif
>
> +ifeq ($(BR2_csky),y)
> +GDB_VERSION = 4ecb98fbc2f94dbe01b69384afbc515107de73df
> +GDB_SITE = $(call github,c-sky,binutils-gdb,$(GDB_VERSION))
> +GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
> +GDB_FROM_GIT = y
> +endif
And you confirm you support both gdbserver and full gdb on the target ?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2019-05-26 20:56 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-08 8:58 [Buildroot] [PATCH V2 1/9] arch/csky: Add VDSP and FLOAT_ABI compiler options guoren at kernel.org
2019-05-08 8:58 ` [Buildroot] [PATCH V2 2/9] arch/csky: Add ck860 and -mcpu " guoren at kernel.org
2019-05-26 20:43 ` Thomas Petazzoni
2019-05-27 6:43 ` Guo Ren
2019-05-08 8:58 ` [Buildroot] [PATCH V2 3/9] arch/csky: Add toolchain build framework guoren at kernel.org
2019-05-26 20:44 ` Thomas Petazzoni
2019-05-27 6:52 ` Guo Ren
2019-05-08 8:58 ` [Buildroot] [PATCH V2 4/9] package/binutils: Add C-SKY support guoren at kernel.org
2019-05-26 20:52 ` Thomas Petazzoni
2019-05-27 7:23 ` Guo Ren
2019-05-08 8:58 ` [Buildroot] [PATCH V2 5/9] package/gcc: " guoren at kernel.org
2019-05-26 20:53 ` Thomas Petazzoni
2019-05-27 7:27 ` Guo Ren
2019-05-08 8:58 ` [Buildroot] [PATCH V2 6/9] package/gdb: " guoren at kernel.org
2019-05-26 20:56 ` Thomas Petazzoni [this message]
2019-05-27 8:08 ` Guo Ren
2019-05-08 8:58 ` [Buildroot] [PATCH V2 7/9] package/glibc: " guoren at kernel.org
2019-05-26 20:57 ` Thomas Petazzoni
2019-05-27 8:11 ` Guo Ren
2019-05-08 8:58 ` [Buildroot] [PATCH V2 8/9] support/config.sub: " guoren at kernel.org
2019-05-27 20:30 ` Thomas Petazzoni
2019-05-27 22:00 ` Peter Korsgaard
2019-05-28 6:55 ` Thomas Petazzoni
2019-06-06 15:19 ` Peter Korsgaard
2019-05-08 8:58 ` [Buildroot] [PATCH V2 9/9] configs/qemu_cskyXXX_virt: new defconfig guoren at kernel.org
2019-05-13 5:46 ` [Buildroot] [PATCH V2 1/9] arch/csky: Add VDSP and FLOAT_ABI compiler options Guo Ren
2019-05-26 20:39 ` Thomas Petazzoni
2019-05-26 20:40 ` Thomas Petazzoni
2019-05-27 11:35 ` Guo Ren
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=20190526225612.333bad27@windsurf \
--to=thomas.petazzoni@bootlin.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