Browse Source

add gdb version configure

Huan.Feng 3 years ago
parent
commit
ebf0ef9e92
2 changed files with 27 additions and 4 deletions
  1. 24 1
      package/gdb/Config.in
  2. 3 3
      package/gdb/Config.in.host

+ 24 - 1
package/gdb/Config.in

@@ -29,7 +29,7 @@ config BR2_PACKAGE_GDB
 		(!BR2_PACKAGE_GDB_DEBUGGER && !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY)
 	help
 	  GDB, the GNU Project debugger, allows you to see what is
-	  going on `inside' another program while it executes -- or
+	  going on 'inside' another program while it executes -- or
 	  what another program was doing at the moment it crashed.
 
 	  This option allows to build gdbserver and/or the gdb
@@ -45,6 +45,29 @@ config BR2_PACKAGE_GDB
 
 if BR2_PACKAGE_GDB
 
+if !BR2_PACKAGE_HOST_GDB
+
+choice
+	prompt "GDB Package debugger Version"
+	default BR2_PACKAGE_GDB_VERSION_8_3
+	depends on !BR2_arc
+	depends on !BR2_csky
+	help
+	  Select the version of gdb you wish to use.
+
+config BR2_PACKAGE_GDB_VERSION_8_2
+	bool "gdb 8.2.x"
+
+config BR2_PACKAGE_GDB_VERSION_8_3
+	bool "gdb 8.3.x"
+
+config BR2_PACKAGE_GDB_VERSION_9_2
+	bool "gdb 9.2.x"
+
+endchoice
+
+endif
+
 config BR2_PACKAGE_GDB_SERVER
 	bool "gdbserver"
 	depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY

+ 3 - 3
package/gdb/Config.in.host

@@ -87,7 +87,7 @@ config BR2_GDB_VERSION
 	string
 	default "arc-2020.09-release-gdb" if BR2_arc
 	default "4ecb98fbc2f94dbe01b69384afbc515107de73df" if BR2_csky
-	default "8.2.1"    if BR2_GDB_VERSION_8_2 || !BR2_PACKAGE_HOST_GDB
-	default "8.3.1"    if BR2_GDB_VERSION_8_3
-	default "9.2"      if BR2_GDB_VERSION_9_2
+	default "8.2.1"    if BR2_GDB_VERSION_8_2 || BR2_PACKAGE_GDB_VERSION_8_2
+	default "8.3.1"    if BR2_GDB_VERSION_8_3 || BR2_PACKAGE_GDB_VERSION_8_3
+	default "9.2"      if BR2_GDB_VERSION_9_2 || BR2_PACKAGE_GDB_VERSION_9_2
 	depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB