clean_restart ${testfile}
-set eol "\[\r\n\]+"
+set eol "\r\n"
set sp "\[ \t\]*"
# Here is the scenario:
# the regular expressions below.
set any_nb "\[0-9\]+"
set any_addr "0x\[0-9a-zA-Z\]+"
-set eol "\[\r\n\]+"
+set eol "\r\n"
set sp "\[ \t\]*"
set info_break_header "Num${sp}Type${sp}Disp${sp}Enb${sp}Address${sp}What"
return -1
}
-set eol "\[\r\n\]+"
+set eol "\r\n"
set test "info locals"
gdb_test_multiple "$test" "$test" {
# Some global variables used to simplify the maintenance of some of
# the regular expressions below.
-set eol "\[\r\n\]+"
+set eol "\r\n"
set sp "\[ \t\]*"
set when "when"
set any_nb "\[0-9\]+"
set any_addr "0x\[0-9a-zA-Z\]+"
-set eol "\[\r\n\]+"
+set eol "\r\n"
set sp "\[ \t\]*"
if {![runto break_me]} {
# when the Ada language is being used.
gdb_test "set lang ada" ""
-set eol "\[\r\n\]+"
+set eol "\r\n"
gdb_test "info types new_integer_type" \
- "All types matching regular expression \"new_integer_type\":${eol}File .*info_types.c:${eol}.*\tint"
+ "All types matching regular expression \"new_integer_type\":${eol}${eol}File .*info_types.c:${eol}.*\tint"
return -1
}
-set eol "\[\r\n\]+"
+set eol "\r\n"
# Check the output of "info target". Note that we are not interested
# in this case in checking the actual info, but rather to make sure that
return -1
}
-set eol "\[\r\n\]+"
+set eol "\r\n"
set sp "\[ \t\]*"
clean_restart ${binfile}
# Make sure that `Local' isn't in scope here; it's local to foobar.
# setup_kfail "gdb/825"
-set eol "\[\t \]*\[\r\n\]+\[\t \]*"
+set eol "\[\t \]*\r\n\[\t \]*"
gdb_test_multiple "ptype Local" "local out of scope" {
-re "No symbol \"Local\" in current context.*${gdb_prompt} $" {
pass "local out of scope"
get_debug_format
-set eol "\[ \t\]*\[\n\r\]+"
-
-gdb_test "ptype v1" "type = struct a {$eol
- int x;$eol
- int y;$eol
-}"
+gdb_test "ptype v1" \
+ [multi_line \
+ "type = struct a {" \
+ " int x;" \
+ " int y;" \
+ "}"]
if {[test_debug_format "stabs"]} {
setup_kfail "gdb/1602" *-*-*
}
-gdb_test "ptype v2" "type = struct a {$eol
- const char .c;$eol
-}"
+gdb_test "ptype v2" \
+ [multi_line \
+ "type = struct a {" \
+ " const char .c;" \
+ "}"]
if {[test_debug_format "stabs"]} {
setup_kfail "gdb/1603" *-*-*