[v4] gdb: Enable early init of thread pool size

Message ID 20231205131041.1927330-1-richard.bunt@linaro.org
State New
Headers
Series [v4] gdb: Enable early init of thread pool size |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm warning Patch is already merged

Commit Message

Richard Bunt Dec. 5, 2023, 1:10 p.m. UTC
  Sorry about this. Fix OK for trunk?

Commit 33ae45434d0 updated the text reported by GDB when showing the
number of work threads. However, it neglected to update the assertions
using this text, which caused index-file.exp to fail. This commit
corrects this omission.

Tested index-file.exp is fixed on my local machine.

---
 gdb/testsuite/lib/gdb.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Tom Tromey Dec. 5, 2023, 2:39 p.m. UTC | #1
>>>>> "Richard" == Richard Bunt <richard.bunt@linaro.org> writes:

Richard> Sorry about this. Fix OK for trunk?
Richard> Commit 33ae45434d0 updated the text reported by GDB when showing the
Richard> number of work threads. However, it neglected to update the assertions
Richard> using this text, which caused index-file.exp to fail. This commit
Richard> corrects this omission.

Richard> Tested index-file.exp is fixed on my local machine.

Looks good.  Thank you.
Approved-By: Tom Tromey <tom@tromey.com>

Tom
  

Patch

diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index d0990dcfe0e..7e478ab9b60 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -10031,7 +10031,7 @@  proc is_target_non_stop { {testname ""} } {
 proc gdb_get_worker_threads { {testname ""} } {
     set worker_threads "UNKNOWN"
     gdb_test_multiple "maintenance show worker-threads" $testname {
-	-wrap -re "^The number of worker threads GDB can use is unlimited \\(currently ($::decimal)\\)\\." {
+	-wrap -re "^The number of worker threads GDB can use is the default \\(currently ($::decimal)\\)\\." {
 	    set worker_threads $expect_out(1,string)
 	}
 	-wrap -re "^The number of worker threads GDB can use is ($::decimal)\\." {