binutils-gdb/gdb/testsuite/gdb.server
Luis Machado 7d49b1d0b0 Test GDB connection to GDBserver with no symbol files
This test exercises the scenarios where we attempt to connect GDB to GDBserver
in standard remote mode, query the symbol file path, attempt to open said
symbol file on GDB's end and fail, causing the connection to drop abruptly.

Regression-tested on x86-64/Ubuntu.

With an unpatched GDB we should see this:

FAIL: gdb.server/connect-with-no-symbol-file.exp: sysroot=: action=permission: connection to GDBserver succeeded (the program is no longer running)
FAIL: gdb.server/connect-with-no-symbol-file.exp: sysroot=: action=delete: connection to GDBserver succeeded (the program is no longer running)
FAIL: gdb.server/connect-with-no-symbol-file.exp: sysroot=target:: action=permission: connection to GDBserver succeeded (the program is no longer running)
FAIL: gdb.server/connect-with-no-symbol-file.exp: sysroot=target:: action=delete: connection to GDBserver succeeded (the program is no longer running)

A patched GDB should have full passes.

gdb/testsuite/ChangeLog:

2016-04-13  Luis Machado  <lgustavo@codesourcery.com>

	* gdb.server/connect-with-no-symbol-file.c: New file.
	* gdb.server/connect-with-no-symbol-file.exp: New file.
2016-04-13 15:22:14 -05:00
..
connect-stopped-target.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
connect-stopped-target.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
connect-with-no-symbol-file.c Test GDB connection to GDBserver with no symbol files 2016-04-13 15:22:14 -05:00
connect-with-no-symbol-file.exp Test GDB connection to GDBserver with no symbol files 2016-04-13 15:22:14 -05:00
connect-without-multi-process.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
connect-without-multi-process.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ext-attach.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ext-attach.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ext-restart.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ext-run.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ext-wrapper.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
file-transfer.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
no-thread-db.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
no-thread-db.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
non-existing-program.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
server-exec-info.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
server-kill.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
server-kill.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
server-mon.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
server-run.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
server.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
solib-list-lib.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
solib-list-main.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
solib-list.exp Make gdb.server/solib-list.exp work for remote targets 2016-04-08 18:45:29 -04:00
transfer.txt
wrapper.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
wrapper.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00