Skip to contentSkip to conversation

package/gdb: add support for gdb 7.12

PATCH New Jörg Krause 3 participants 7 messages Dec 14, 2016 – Dec 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 package/gdb: add support for gdb 7.12

gdb 7.12 was released on October 2016, it's time to include it in Buildroot, which this commit does.

---
 package/gdb/Config.in.host | 4 ++++
 package/gdb/gdb.hash       | 1 +
 2 files changed, 5 insertions(+)
package/gdb/Config.in.host +4 -0
index 4c8d902..2d4631e 100644
@@ -48,6 +48,9 @@ choice
 	config BR2_GDB_VERSION_7_11
 		bool "gdb 7.11.x"
 
+	config BR2_GDB_VERSION_7_12
+		bool "gdb 7.12.x"
+
 endchoice
 
 endif
@@ -61,3 +64,4 @@ config BR2_GDB_VERSION
 	default "7.9.1"    if BR2_GDB_VERSION_7_9
 	default "7.10.1"   if BR2_GDB_VERSION_7_10 || !BR2_PACKAGE_HOST_GDB
 	default "7.11.1"   if BR2_GDB_VERSION_7_11
+	default "7.12"     if BR2_GDB_VERSION_7_12
package/gdb/gdb.hash +1 -0
index c91373b..a44aaa3 100644
@@ -2,6 +2,7 @@
 sha512	eebdf88b24e52e792b8a4b89ea85790de72b462a7810b44975fdf4232c068f353b15506071f450102a9d4bcecdde8e93dc3748a10699b7f73f3e04fb2d9d8414	gdb-7.9.1.tar.xz
 sha512	17a5138277a31685a5c2a841cb47ed9bc4626ea617b8ca77750513b300299f4fbbffe504958b5372de610dcb952c679cf8fa9c1bdadd380294fbf59b6e366010	gdb-7.10.1.tar.xz
 sha512  f80ec6c8a0f0b54c8b945666e875809174402b7e121efb378ebac931a91f9a1cc0048568f8e2f42ae8ae2392ff8d144c2e51d41c7398935017450aaf29838360	gdb-7.11.1.tar.xz
+sha512  f610338b3a24dfb387c295431d806a0c1375e8ce51b8dd8bbfd2efc4612d0c0ed40ad4393508afca0071eca70688f62bc4f199da5e75ad16f64d91c3bc046033	gdb-7.12.tar.xz
 
 # Locally calculated (fetched from Github)
 sha512  0a467091d4b01fbecabb4b8da1cb743025c70e7f4874a0b5c8fa2ec623569a39bde6762b91806de0be6e63711aeb6909715cfbe43860de73d8aec6159a9f10a7	gdb-6be65fb56ea6694a9260733a536a023a1e2d4d57.tar.gz
Signature · 1 line
2.10.2
#1 lore raw

PATCH 2/3 package/gdb: switch to 7.11 as the default version

7.12 is around, 7.11 has already seen a point release, so it's time to make 7.11 the default version for gdb.

---
 package/gdb/Config.in.host | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
package/gdb/Config.in.host +3 -3
index 2d4631e..3b2e279 100644
@@ -35,7 +35,7 @@ choice
 	prompt "GDB debugger Version"
 	depends on !BR2_arc
 	depends on !BR2_microblaze
-	default BR2_GDB_VERSION_7_10
+	default BR2_GDB_VERSION_7_11
 	help
 	  Select the version of gdb you wish to use.
 
@@ -62,6 +62,6 @@ config BR2_GDB_VERSION
 	default "arc-2016.09-rc2-gdb" if BR2_arc
 	default "6be65fb56ea6694a9260733a536a023a1e2d4d57" if BR2_microblaze
 	default "7.9.1"    if BR2_GDB_VERSION_7_9
-	default "7.10.1"   if BR2_GDB_VERSION_7_10 || !BR2_PACKAGE_HOST_GDB
-	default "7.11.1"   if BR2_GDB_VERSION_7_11
+	default "7.10.1"   if BR2_GDB_VERSION_7_10
+	default "7.11.1"   if BR2_GDB_VERSION_7_11 || !BR2_PACKAGE_HOST_GDB
 	default "7.12"     if BR2_GDB_VERSION_7_12
Signature · 1 line
2.10.2
#2 lore raw

PATCH 3/3 package/gdb: remove version 7.9

In reply to Jörg Krause

Now that 7.12 has been added and 7.11 is the default version, let's remove the old 7.9 release.

---
 Config.in.legacy                                   |   7 +
 .../0001-gdbserver-fix-uClibc-whithout-MMU.patch   |  34 ---
 ...gdbserver-xtensa-drop-xtensa_usrregs_info.patch |  47 ----
 ...erver-xtensa-fix-typo-in-XCHAL_HAVE_LOOPS.patch |  46 ----
 .../7.9.1/0004-xtensa-implement-NPTL-helpers.patch | 267 ---------------------
 .../0005-Add-some-casts-for-building-on-musl.patch |  70 ------
 ...musl-Move-W_STOPCODE-to-common-gdb_wait-h.patch |  63 -----
 package/gdb/7.9.1/0007-move-__SIGRTMIN.patch       |  58 -----
 package/gdb/Config.in.host                         |   4 -
 package/gdb/gdb.hash                               |   1 -
 10 files changed, 7 insertions(+), 590 deletions(-)
 delete mode 100644 package/gdb/7.9.1/0001-gdbserver-fix-uClibc-whithout-MMU.patch
 delete mode 100644 package/gdb/7.9.1/0002-gdbserver-xtensa-drop-xtensa_usrregs_info.patch
 delete mode 100644 package/gdb/7.9.1/0003-gdbserver-xtensa-fix-typo-in-XCHAL_HAVE_LOOPS.patch
 delete mode 100644 package/gdb/7.9.1/0004-xtensa-implement-NPTL-helpers.patch
 delete mode 100644 package/gdb/7.9.1/0005-Add-some-casts-for-building-on-musl.patch
 delete mode 100644 package/gdb/7.9.1/0006-musl-Move-W_STOPCODE-to-common-gdb_wait-h.patch
 delete mode 100644 package/gdb/7.9.1/0007-move-__SIGRTMIN.patch
Config.in.legacy +7 -0
index b42eb41..3c672ee 100644
@@ -194,6 +194,13 @@ config BR2_PACKAGE_SNOWBALL_INIT
 	  We no longer have support for the Snowball platform in
 	  Buildroot, so this package was no longer useful.
 
+config BR2_GDB_VERSION_7_9
+	bool "gdb 7.9 has been removed"
+	select BR2_LEGACY
+	help
+	  The 7.9 version of gdb has been removed. Use a newer version
+	  instead.
+
 ###############################################################################
 comment "Legacy options removed in 2016.11"
 
package/gdb/7.9.1/0001-gdbserver-fix-uClibc-whithout-MMU.patch deleted +0 -34
deleted file mode 100644
index 340db67..0000000
@@ -1,34 +0,0 @@
-From 570805e96bb8c458795b04f4745700795997ef40 Mon Sep 17 00:00:00 2001
-From: Romain Naour <[email protected]>
-Date: Fri, 10 Apr 2015 22:58:07 +0200
-Subject: [PATCH] gdbserver: fix uClibc whithout MMU.
-
-Since commit d86d4aafd4fa22fa4cccb83253fb187b03f97f48, the pid
-must be retrieved from current_thread.
-
-The change has not been made in the function linux_read_offsets().
-
-Fixes:
-http://autobuild.buildroot.net/results/9e4/9e4df085319e346803c26c65478accb27eb950ae/build-end.log
-
-Signed-off-by: Romain Naour <[email protected]>
----
- gdb/gdbserver/linux-low.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
-index 4d19c87..7585b80 100644
---- a/gdb/gdbserver/linux-low.c
-+++ b/gdb/gdbserver/linux-low.c
-@@ -4933,7 +4933,7 @@ static int
- linux_read_offsets (CORE_ADDR *text_p, CORE_ADDR *data_p)
- {
-   unsigned long text, text_end, data;
--  int pid = lwpid_of (get_thread_lwp (current_thread));
-+  int pid = lwpid_of (current_thread);
- 
-   errno = 0;
- 
--- 
-1.9.3
-
package/gdb/7.9.1/0002-gdbserver-xtensa-drop-xtensa_usrregs_info.patch deleted +0 -47

47 lines not on this page · raw message

package/gdb/7.9.1/0003-gdbserver-xtensa-fix-typo-in-XCHAL_HAVE_LOOPS.patch deleted +0 -46

46 lines not on this page · raw message

package/gdb/7.9.1/0004-xtensa-implement-NPTL-helpers.patch deleted +0 -267

267 lines not on this page · raw message

package/gdb/7.9.1/0005-Add-some-casts-for-building-on-musl.patch deleted +0 -70

70 lines not on this page · raw message

package/gdb/7.9.1/0006-musl-Move-W_STOPCODE-to-common-gdb_wait-h.patch deleted +0 -63

63 lines not on this page · raw message

package/gdb/7.9.1/0007-move-__SIGRTMIN.patch deleted +0 -58

58 lines not on this page · raw message

package/gdb/Config.in.host +0 -4
index 3b2e279..3a187f0 100644
@@ -39,9 +39,6 @@ choice
 	help
 	  Select the version of gdb you wish to use.
 
-	config BR2_GDB_VERSION_7_9
-		bool "gdb 7.9.x"
-
 	config BR2_GDB_VERSION_7_10
 		bool "gdb 7.10.x"
 
@@ -61,7 +58,6 @@ config BR2_GDB_VERSION
 	depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB
 	default "arc-2016.09-rc2-gdb" if BR2_arc
 	default "6be65fb56ea6694a9260733a536a023a1e2d4d57" if BR2_microblaze
-	default "7.9.1"    if BR2_GDB_VERSION_7_9
 	default "7.10.1"   if BR2_GDB_VERSION_7_10
 	default "7.11.1"   if BR2_GDB_VERSION_7_11 || !BR2_PACKAGE_HOST_GDB
 	default "7.12"     if BR2_GDB_VERSION_7_12
package/gdb/gdb.hash +0 -1
index a44aaa3..c63d5e2 100644
@@ -1,5 +1,4 @@
 # From ftp://gcc.gnu.org/pub/gdb/releases/sha512.sum
-sha512	eebdf88b24e52e792b8a4b89ea85790de72b462a7810b44975fdf4232c068f353b15506071f450102a9d4bcecdde8e93dc3748a10699b7f73f3e04fb2d9d8414	gdb-7.9.1.tar.xz
 sha512	17a5138277a31685a5c2a841cb47ed9bc4626ea617b8ca77750513b300299f4fbbffe504958b5372de610dcb952c679cf8fa9c1bdadd380294fbf59b6e366010	gdb-7.10.1.tar.xz
 sha512  f80ec6c8a0f0b54c8b945666e875809174402b7e121efb378ebac931a91f9a1cc0048568f8e2f42ae8ae2392ff8d144c2e51d41c7398935017450aaf29838360	gdb-7.11.1.tar.xz
 sha512  f610338b3a24dfb387c295431d806a0c1375e8ce51b8dd8bbfd2efc4612d0c0ed40ad4393508afca0071eca70688f62bc4f199da5e75ad16f64d91c3bc046033	gdb-7.12.tar.xz
Signature · 1 line
2.10.2
#3 lore raw

PATCH 1/3 package/gdb: add support for gdb 7.12

In reply to Jörg Krause

Hello,

Quoted 4 lines · J?rg Krause

gdb 7.12 was released on October 2016, it's time to include it in Buildroot, which this commit does.

We have one patch on gdb 7.11.1. Is it still needed? I know I reported the problem to Mike Frysinger, so he might have fixed it upstream, but I haven't followed. It's worth double checing.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#4 lore raw

PATCH 1/3 package/gdb: add support for gdb 7.12

Hi Thomas,

Quoted 6 lines · Thomas Petazzoni

Hello,

Quoted 3 lines · J?rg Krause

gdb 7.12 was released on October 2016, it's time to include it in Buildroot, which this commit does.

Quoted 7 lines
Quoted 1 line

We have one patch on gdb 7.11.1. Is it still needed? I know I reported
the problem to Mike Frysinger, so he might have fixed it upstream, but
I haven't followed. It's worth double checing.

The issue address by the patch 'Revert "sim: unify SIM_CPU definition"' should be fixed by this commit [1].

I double checked by building gdb 7.12?without the mentioned patch for the target bf512 with this [2] Buildroot toolchain configuration successfully.

[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdi
ff;h=474a2d9f5f8a080e30812525729c3a8b7baa61d6
[2] http://autobuild.buildroot.org/toolchains/configs/br-bfin-full.conf
ig

J?rg

#5 lore raw

PATCH 1/3 package/gdb: add support for gdb 7.12

Hello,

Quoted 2 lines · J?rg Krause

The issue address by the patch 'Revert "sim: unify SIM_CPU definition"' should be fixed by this commit [1].

Indeed, seems related.

Quoted 3 lines

I double checked by building gdb 7.12?without the mentioned patch for the target bf512 with this [2] Buildroot toolchain configuration successfully.

OK. Note that just building gdb was not sufficient to trigger the problem, you had to enable the GDB simulator (in host gdb), if I remember correctly.

But that's fine, the patch you point at is clearly addressing the original problem, so we're good.

Thanks a lot!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com