aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-01-16 21:20:06 +0000
committerAndrew Cagney <cagney@redhat.com>2005-01-16 21:20:06 +0000
commit17d92a02195a3dc9d3d3b6d46b22cb187eeccd19 (patch)
treebbcbf99ae0d66e7176859a9ba9efa697c53f4b82 /gdb/testsuite
parentae03635710dcd5a17dbe0fbf3971d079281eeede (diff)
downloadgdb-17d92a02195a3dc9d3d3b6d46b22cb187eeccd19.zip
gdb-17d92a02195a3dc9d3d3b6d46b22cb187eeccd19.tar.gz
gdb-17d92a02195a3dc9d3d3b6d46b22cb187eeccd19.tar.bz2
2005-01-16 Andrew Cagney <cagney@gnu.org>
* cli/cli-script.c: Include "exceptions.h". (struct wrapped_read_command_file_args): Define. (wrapped_read_command_file): New function. (script_from_file): Replace direct call to read_command_file by one wrapped by an exception handler. * exceptions.c (throw_it): Free the old message after creating the new. * Makefile.in: Update dependencies. Index: testsuite/ChangeLog 2005-01-16 Andrew Cagney <cagney@gnu.org> * gdb.base/source.exp: Delete KFAIL gdb/1846, simplify.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog2
-rw-r--r--gdb/testsuite/gdb.base/source.exp12
2 files changed, 5 insertions, 9 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 5268537..bc352ab 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,7 @@
2005-01-16 Andrew Cagney <cagney@gnu.org>
+ * gdb.base/source.exp: Delete KFAIL gdb/1846, simplify.
+
* gdb.base/source-error.gdb, gdb.base/source.exp: New files.
2005-01-14 Andrew Cagney <cagney@gnu.org>
diff --git a/gdb/testsuite/gdb.base/source.exp b/gdb/testsuite/gdb.base/source.exp
index 81496d9..a17b314 100644
--- a/gdb/testsuite/gdb.base/source.exp
+++ b/gdb/testsuite/gdb.base/source.exp
@@ -35,14 +35,8 @@ set binfile ${objdir}/${subdir}/${testfile}
gdb_start
-set test "script contains error"
-gdb_test_multiple "source ${srcdir}/${subdir}/source-error.gdb" $test {
- -re "source-error.gdb:22: Error in sourced command file:\[\r\n\]*Cannot access memory at address 0x0.*$gdb_prompt " {
- pass $test
- }
- -re "0x0:\[ \t\]+Cannot access memory at address 0x0.*$gdb_prompt " {
- kfail gdb/1846 $test
- }
-}
+gdb_test "source ${srcdir}/${subdir}/source-error.gdb" \
+ "source-error.gdb:22: Error in sourced command file:\[\r\n\]*Cannot access memory at address 0x0.*" \
+ "script contains error"
gdb_exit