It should have been added to mi-file.exp. So, here it is.
+2004-07-07 Bob Rossi <bob_rossi@cox.net>
+
+ * gdb.mi/mi2-file.exp: Revert to version 1.1, except changed name of
+ test from test_tbreak_creation_and_listing to
+ test_file_list_exec_source_file
+ * gdb.mi/mi-file.exp: Add test for -file-list-exec-source-files
+ Changed name of test from test_tbreak_creation_and_listing to
+ test_file_list_exec_source_file
+
2004-07-07 Jeff Johnston <jjohnstn@redhat.com>
* gdb.java/jmisc.exp: Fix expected output of ptype to look for
-# Copyright 1999 Free Software Foundation, Inc.
+# Copyright 1999, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
mi_gdb_reinitialize_dir $srcdir/$subdir
mi_gdb_load ${binfile}
-proc test_tbreak_creation_and_listing {} {
+proc test_file_list_exec_source_file {} {
global srcfile
global srcdir
global subdir
"request path info of current source file (${srcfile})"
}
-test_tbreak_creation_and_listing
+proc test_file_list_exec_source_files {} {
+ global srcfile
+
+ # 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=\".*\"\}\\\]" \
+ "Getting a list of source files."
+}
+
+test_file_list_exec_source_file
+test_file_list_exec_source_files
mi_gdb_exit
return 0
-# Copyright 1999 Free Software Foundation, Inc.
+# Copyright 1999, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
"request path info of current source file (${srcfile})"
}
-proc test_file_list_exec_source_files {} {
- global srcfile
-
- # 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=\".*\"\}\\\]" \
- "Getting a list of source files."
-}
-
test_file_list_exec_source_file
-test_file_list_exec_source_files
mi_gdb_exit
return 0