mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user