-# Copyright 2008-2015 Free Software Foundation, Inc.
+# Copyright 2008-2016 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
# 2) Inferior is stopped at a signal. Upon resumption it should continue
# with that signal, regardless of whatever the hand-called function did.
-if [target_info exists gdb,noinferiorio] {
- verbose "Skipping call-signal-resume.exp because of no fileio capabilities."
- continue
-}
-
if [target_info exists gdb,nosignals] {
verbose "Skipping call-signal-resume.exp because of nosignals."
continue
standard_testfile call-signals.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested call-signal-resume.exp
+ untested "failed to compile"
return -1
}
# Some targets can't do function calls, so don't even bother with this
# test.
if [target_info exists gdb,cannot_call_functions] {
- setup_xfail "*-*-*" 2416
- fail "This target can not call functions"
+ unsupported "this target can not call functions"
continue
}
clean_restart ${binfile}
if { ![runto_main] } {
- fail "Can't run to main"
+ fail "can't run to main"
return 0
}
# Call function (causing the program to get a signal), and see if gdb handles
# it properly.
-gdb_test_multiple "call gen_signal ()" \
- "inferior function call signaled" {
- -re "\[\r\n\]*no signal\[\r\n\]+$gdb_prompt $" {
- unsupported "inferior function call signaled"
- return 0
- }
- -re "\[\r\n\]*The program being debugged was signaled.*\[\r\n\]+$gdb_prompt $" {
- pass "inferior function call signaled"
- }
+if {[gdb_test "call gen_signal ()" \
+ "\[\r\n\]*The program being debugged was signaled.*" \
+ "inferior function call signaled"] != 0} {
+ return 0
}
set frame_number [get_dummy_frame_number]