Thu Feb 20 13:57:01 1997 Bob Manson <manson@charmed.cygnus.com>
+ * lib/gdb.exp(gdb_init): New function.
+
* gdb.base/setvar.exp(test_set): Don't bother printing a PASS/FAIL
for each individual variable set.
for {set x 0;} {$x < $length} {incr x;} {
if { "[lindex $args $x]" != "" } {
verbose "doing [lindex $args $x]"
- gdb_test "[lindex $args $x]" "" "$message (setting variable)"
+ if [gdb_test "[lindex $args $x]" "" ""] {
+ fail "$message [lindex $args $x]";
+ return 1;
+ }
}
}
verbose "expecting $print_result from '$print_cmd'"
# Now run the test.
- gdb_test "$print_cmd" "$print_result" "$message";
+ return [gdb_test "$print_cmd" "$print_result" "$message"];
}
#
# the type of the structure to be specified, as in
# v_struct1 = (struct t_struct) {32, 33, 34, 35, 36, 37}
# GDB should do the same if it wants to provide this feature.
+if [target_info exists gdb,cannot_call_functions] {
+ setup_xfail "*-*-*" 2416
+ fail "set variable v_struct1 = {32, 33, 34, 35, 36, 37}"
+ continue
+}
gdb_test "set variable v_struct1 = {32, 33, 34, 35, 36, 37}" "Invalid.*"
# And after the error the structure should be unchanged.