summaryrefslogtreecommitdiffstats
path: root/gdb/testsuite/gdb.mi
diff options
context:
space:
mode:
authorBob Rossi <bob@brasko.net>2005-05-08 13:42:04 +0000
committerBob Rossi <bob@brasko.net>2005-05-08 13:42:04 +0000
commit6006a3a1ec3bfe06d562da123c2c8a3d71291184 (patch)
tree08bb2d5bc55a053594a459823247dcb15607332b /gdb/testsuite/gdb.mi
parentc41aea10b5fb1fe333cd61c84eea09c31a4dfc0a (diff)
downloadppe42-binutils-6006a3a1ec3bfe06d562da123c2c8a3d71291184.tar.gz
ppe42-binutils-6006a3a1ec3bfe06d562da123c2c8a3d71291184.zip
Add the fullname_syntax testsuite variable. This allows GDB to make sure
that the MI fullname field is an absolute path, instead of just checking for .* or /.*
Diffstat (limited to 'gdb/testsuite/gdb.mi')
-rw-r--r--gdb/testsuite/gdb.mi/mi-file.exp6
-rw-r--r--gdb/testsuite/gdb.mi/mi2-file.exp3
2 files changed, 6 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-file.exp b/gdb/testsuite/gdb.mi/mi-file.exp
index 0ce4fd6494..6104466384 100644
--- a/gdb/testsuite/gdb.mi/mi-file.exp
+++ b/gdb/testsuite/gdb.mi/mi-file.exp
@@ -48,6 +48,7 @@ proc test_file_list_exec_source_file {} {
global srcfile
global srcdir
global subdir
+ global fullname_syntax
set srcfilepath [string_to_regexp ${srcdir}/${subdir}/${srcfile}]
# get the path and absolute path to the current executable
@@ -63,16 +64,17 @@ proc test_file_list_exec_source_file {} {
set line_default [expr $line_main_body - $gdb_lines_to_list + 1]
mi_gdb_test "111-file-list-exec-source-file" \
- "111\\\^done,line=\"$line_default\",file=\"${srcfilepath}\",fullname=\"/.*/${srcfile}\"" \
+ "111\\\^done,line=\"$line_default\",file=\"${srcfilepath}\",fullname=\"$fullname_syntax${srcfile}\"" \
"request path info of current source file (${srcfile})"
}
proc test_file_list_exec_source_files {} {
global srcfile
+ global fullname_syntax
# get the path and absolute path to the current executable
mi_gdb_test "222-file-list-exec-source-files" \
- "222\\\^done,files=\\\[\{file=\".*/${srcfile}\",fullname=\"/.*/${srcfile}\"\},\{file=\".*\"\},\{file=\".*\"\},\{file=\".*\"\},\{file=\".*\"\}\\\]" \
+ "222\\\^done,files=\\\[\{file=\".*/${srcfile}\",fullname=\"$fullname_syntax${srcfile}\"\},\{file=\".*\"\},\{file=\".*\"\},\{file=\".*\"\},\{file=\".*\"\}\\\]" \
"Getting a list of source files."
}
diff --git a/gdb/testsuite/gdb.mi/mi2-file.exp b/gdb/testsuite/gdb.mi/mi2-file.exp
index 1e81df6d6a..50581ca49f 100644
--- a/gdb/testsuite/gdb.mi/mi2-file.exp
+++ b/gdb/testsuite/gdb.mi/mi2-file.exp
@@ -48,6 +48,7 @@ proc test_file_list_exec_source_file {} {
global srcfile
global srcdir
global subdir
+ global fullname_syntax
set srcfilepath [string_to_regexp ${srcdir}/${subdir}/${srcfile}]
# get the path and absolute path to the current executable
@@ -63,7 +64,7 @@ proc test_file_list_exec_source_file {} {
set line_default [expr $line_main_body - $gdb_lines_to_list + 1]
mi_gdb_test "111-file-list-exec-source-file" \
- "111\\\^done,line=\"$line_default\",file=\"${srcfilepath}\",fullname=\"/.*/${srcfile}\"" \
+ "111\\\^done,line=\"$line_default\",file=\"${srcfilepath}\",fullname=\"$fullname_syntax${srcfile}\"" \
"request path info of current source file (${srcfile})"
}
OpenPOWER on IntegriCloud