detect_async -> mi_detect_async

Pedro Alves pedro@codesourcery.com
Tue Aug 9 17:51:00 GMT 2011


Just a simple rename, to make way for a cli version of the same.

There's actually only one other procedure in mi-support.exp that
doesn't have mi in its name.

 $ grep "^proc" mi-support.exp | grep -v mi
 proc count_newlines { string } {

Tested on x86_64-linux and applied.

-- 
Pedro Alves

2011-08-09  Pedro Alves  <pedro@codesourcery.com>

	gdb/testsuite/
	* lib/mi-support.exp (detect_async): Rename to...
	(mi_detect_async): ... this.
	* gdb.mi/mi-nonstop-exit.exp: Adjust.
	* gdb.mi/mi-nonstop.exp: Adjust.
	* gdb.mi/mi-ns-stale-regcache.exp: Adjust.
	* gdb.mi/mi-nsintrall.exp: Adjust.
	* gdb.mi/mi-nsmoribund.exp: Adjust.
	* gdb.mi/mi-nsthrexec.exp: Adjust.

---
 gdb/testsuite/gdb.mi/mi-nonstop-exit.exp      |    2 +-
 gdb/testsuite/gdb.mi/mi-nonstop.exp           |    2 +-
 gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp |    2 +-
 gdb/testsuite/gdb.mi/mi-nsintrall.exp         |    2 +-
 gdb/testsuite/gdb.mi/mi-nsmoribund.exp        |    2 +-
 gdb/testsuite/gdb.mi/mi-nsthrexec.exp         |    2 +-
 gdb/testsuite/lib/mi-support.exp              |    4 ++--
 7 files changed, 8 insertions(+), 8 deletions(-)

Index: src/gdb/testsuite/lib/mi-support.exp
===================================================================
--- src.orig/gdb/testsuite/lib/mi-support.exp	2011-08-01 12:57:04.936150791 +0100
+++ src/gdb/testsuite/lib/mi-support.exp	2011-08-01 13:02:25.686150847 +0100
@@ -223,7 +223,7 @@ proc default_mi_gdb_start { args } {
     	}
     }
 
-    detect_async
+    mi_detect_async
 
     return 0;
 }
@@ -932,7 +932,7 @@ proc mi_step { test } {
 
 set async "unknown"
 
-proc detect_async {} {
+proc mi_detect_async {} {
     global async
     global mi_gdb_prompt
 
Index: src/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp
===================================================================
--- src.orig/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp	2011-08-01 12:59:39.756150817 +0100
+++ src/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp	2011-08-01 13:02:25.676150847 +0100
@@ -43,7 +43,7 @@ mi_gdb_load $binfile
 
 mi_gdb_test "-gdb-set non-stop 1" ".*"
 mi_gdb_test "-gdb-set target-async 1" ".*"
-detect_async
+mi_detect_async
 
 if { [mi_run_to_main] < 0 } {
     continue
Index: src/gdb/testsuite/gdb.mi/mi-nonstop.exp
===================================================================
--- src.orig/gdb/testsuite/gdb.mi/mi-nonstop.exp	2011-08-01 12:59:39.756150817 +0100
+++ src/gdb/testsuite/gdb.mi/mi-nonstop.exp	2011-08-01 13:02:25.676150847 +0100
@@ -54,7 +54,7 @@ mi_gdb_load $binfile
 
 mi_gdb_test "-gdb-set non-stop 1" ".*"
 mi_gdb_test "-gdb-set target-async 1" ".*"
-detect_async
+mi_detect_async
 
 if { [mi_run_to_main] < 0 } {
     continue
Index: src/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp
===================================================================
--- src.orig/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp	2011-08-01 12:59:39.756150817 +0100
+++ src/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp	2011-08-01 13:02:25.686150847 +0100
@@ -57,7 +57,7 @@ mi_gdb_load $binfile
 
 mi_gdb_test "-gdb-set non-stop 1" ".*"
 mi_gdb_test "-gdb-set target-async 1" ".*"
-detect_async
+mi_detect_async
 
 if { [mi_run_to_main] < 0 } {
     continue
Index: src/gdb/testsuite/gdb.mi/mi-nsintrall.exp
===================================================================
--- src.orig/gdb/testsuite/gdb.mi/mi-nsintrall.exp	2011-08-01 12:59:39.756150817 +0100
+++ src/gdb/testsuite/gdb.mi/mi-nsintrall.exp	2011-08-01 13:02:25.686150847 +0100
@@ -43,7 +43,7 @@ mi_gdb_load $binfile
 
 mi_gdb_test "-gdb-set non-stop 1" ".*"
 mi_gdb_test "-gdb-set target-async 1" ".*"
-detect_async
+mi_detect_async
 
 if { [mi_run_to_main] < 0 } {
     continue
Index: src/gdb/testsuite/gdb.mi/mi-nsmoribund.exp
===================================================================
--- src.orig/gdb/testsuite/gdb.mi/mi-nsmoribund.exp	2011-08-01 12:59:39.756150817 +0100
+++ src/gdb/testsuite/gdb.mi/mi-nsmoribund.exp	2011-08-01 13:02:25.686150847 +0100
@@ -43,7 +43,7 @@ mi_gdb_load $binfile
 
 mi_gdb_test "-gdb-set non-stop 1" ".*"
 mi_gdb_test "-gdb-set target-async 1" ".*"
-detect_async
+mi_detect_async
 
 if { [mi_run_to_main] < 0 } {
     continue
Index: src/gdb/testsuite/gdb.mi/mi-nsthrexec.exp
===================================================================
--- src.orig/gdb/testsuite/gdb.mi/mi-nsthrexec.exp	2011-08-01 12:59:39.766150817 +0100
+++ src/gdb/testsuite/gdb.mi/mi-nsthrexec.exp	2011-08-01 13:02:25.686150847 +0100
@@ -53,7 +53,7 @@ mi_gdb_load $binfile
 
 mi_gdb_test "-gdb-set non-stop 1" ".*"
 mi_gdb_test "-gdb-set target-async 1" ".*"
-detect_async
+mi_detect_async
 
 if { [mi_run_to_main] < 0 } {
     continue



More information about the Gdb-patches mailing list