Fix gdb.server/server-exec-info.exp with the extended-remote board
This test fails with --target_board=native-extended-gdbserver because it misses the usual "disconnect": (gdb) spawn ../gdbserver/gdbserver --once :2347 /home/pedro/gdb/mygit/build/gdb/testsuite/gdb.server/server-exec-info Process /home/pedro/gdb/mygit/build/gdb/testsuite/gdb.server/server-exec-info created; pid = 4736 Listening on port 2347 target extended-remote localhost:2347 Already connected to a remote target. Disconnect? (y or n) ^CsQuit (gdb) et sysroot remote: Undefined command: "et". Try "help". (gdb) n The program is not being run. (gdb) FAIL: gdb.server/server-exec-info.exp: set sysroot remote: (got interactive prompt) info files (gdb) FAIL: gdb.server/server-exec-info.exp: info files gdb/testsuite/ChangeLog: 2015-07-28 Pedro Alves <palves@redhat.com> * gdb.server/server-exec-info.exp: Issue a "disconnect".
This commit is contained in:
parent
3ae385afe1
commit
bde40b8f56
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2015-07-28 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* gdb.server/server-exec-info.exp: Issue a "disconnect".
|
||||
|
||||
2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
|
||||
|
||||
* gdb.mi/mi-pending.c (thread_func): Replace return with return NULL.
|
||||
|
|
|
@ -27,6 +27,10 @@ if [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] {
|
|||
return -1
|
||||
}
|
||||
|
||||
# Make sure we're disconnected, in case we're testing with an
|
||||
# extended-remote board, therefore already connected.
|
||||
gdb_test "disconnect" ".*"
|
||||
|
||||
gdb_test_no_output "set remote pid-to-exec-file-packet off"
|
||||
gdb_test "file" ".*" "file" \
|
||||
{Discard symbol table from `.*'\? \(y or n\) } "y"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue