diff options
author | Pedro Alves <palves@redhat.com> | 2015-07-28 18:04:07 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-07-28 18:04:07 +0100 |
commit | bde40b8f563dd682b9c6bcb8e24c3f5bd944a4f6 (patch) | |
tree | 2edbf3e605d51904bfd07fc37ab95eba33d5983a /gdb | |
parent | 3ae385afe150f2e001a1cc8fb14f4ba0ab94cdf2 (diff) | |
download | gdb-bde40b8f563dd682b9c6bcb8e24c3f5bd944a4f6.zip gdb-bde40b8f563dd682b9c6bcb8e24c3f5bd944a4f6.tar.gz gdb-bde40b8f563dd682b9c6bcb8e24c3f5bd944a4f6.tar.bz2 |
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".
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.server/server-exec-info.exp | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index fd7c09c..3ca42a8 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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. diff --git a/gdb/testsuite/gdb.server/server-exec-info.exp b/gdb/testsuite/gdb.server/server-exec-info.exp index c12554a..079efd7 100644 --- a/gdb/testsuite/gdb.server/server-exec-info.exp +++ b/gdb/testsuite/gdb.server/server-exec-info.exp @@ -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" |