mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
Remove unneeded pattern matching in gdb.base/maint.exp
This gets rid of more useless pattern matching cases in gdb.base/maint.exp. gdb/testsuite/ChangeLog: 2016-12-02 Luis Machado <lgustavo@codesourcery.com> * gdb.base/maint.exp: Use gdb_test instead of gdb_test_multiple when possible. Remove useless pattern-matching code.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2016-12-02 Luis Machado <lgustavo@codesourcery.com>
|
||||||
|
|
||||||
|
* gdb.base/maint.exp: Use gdb_test instead of gdb_test_multiple when
|
||||||
|
possible.
|
||||||
|
Remove useless pattern-matching code.
|
||||||
|
|
||||||
2016-12-02 Pedro Alves <palves@redhat.com>
|
2016-12-02 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* gdb.base/commands.exp (user_defined_command_manyargs_test): New
|
* gdb.base/commands.exp (user_defined_command_manyargs_test): New
|
||||||
|
@ -290,24 +290,12 @@ gdb_test_multiple "maint print msymbols msymbols_output2 ${testfile}" "maint pri
|
|||||||
-re "^maint print msymbols msymbols_output2 \[^\n\]*\r\n$gdb_prompt $" {
|
-re "^maint print msymbols msymbols_output2 \[^\n\]*\r\n$gdb_prompt $" {
|
||||||
gdb_test_multiple "shell ls msymbols_output2" "maint print msymbols" {
|
gdb_test_multiple "shell ls msymbols_output2" "maint print msymbols" {
|
||||||
-re "msymbols_output2\r\n$gdb_prompt $" {
|
-re "msymbols_output2\r\n$gdb_prompt $" {
|
||||||
gdb_test_multiple "shell grep factorial msymbols_output2" "maint print msymbols" {
|
gdb_test "shell grep factorial msymbols_output2" \
|
||||||
-re "\\\[ *$decimal\\\] \[tT\]\[ \t\]+$hex \\.?factorial.*$gdb_prompt $" {
|
"\\\[ *$decimal\\\] \[tT\]\[ \t\]+$hex \\.?factorial.*" \
|
||||||
pass "maint print msymbols"
|
"maint print msymbols"
|
||||||
}
|
gdb_test "shell rm -f msymbols_output2" ".*"
|
||||||
-re ".*$gdb_prompt $" {
|
|
||||||
fail "maint print msymbols"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gdb_test "shell rm -f msymbols_output2" ".*" \
|
|
||||||
"shell rm -f msymbols_output2"
|
|
||||||
}
|
|
||||||
-re ".*$gdb_prompt $" {
|
|
||||||
fail "maint print msymbols"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-re ".*$gdb_prompt $" {
|
|
||||||
fail "maint print msymbols"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gdb_test "cd ${mydir}" \
|
gdb_test "cd ${mydir}" \
|
||||||
|
Reference in New Issue
Block a user