Make gdb.base/find-unmapped.exp pass on remote targets
authorPedro Alves <palves@redhat.com>
Fri, 13 Oct 2017 15:34:50 +0000 (16:34 +0100)
committerPedro Alves <palves@redhat.com>
Fri, 13 Oct 2017 15:34:50 +0000 (16:34 +0100)
commit8b0553c18f0dc63ab0ae930f2e8eed2bce4cd32c
treec39464507b80f39205ee6f6b4350323eb091eb24
parent2399fe6ab0b6ee64c569992e4bc3bbae3b5b2193
Make gdb.base/find-unmapped.exp pass on remote targets

Currently, with --target_board=native-extended-gdbserver, we get:

  Running .../src/gdb/testsuite/gdb.base/find-unmapped.exp ...
  FAIL: gdb.base/find-unmapped.exp: find global_var_0, global_var_2, 0xff
  FAIL: gdb.base/find-unmapped.exp: find global_var_1, global_var_2, 0xff
  FAIL: gdb.base/find-unmapped.exp: find global_var_2, (global_var_2 + 16), 0xff

This commit makes the test pass there, and also enables in on
--target_board=native-gdbserver, and other remote targets.

I've filed PR gdb/22293 to track the missing-warning problem.

gdb/testsuite/ChangeLog:
2017-10-13  Pedro Alves  <palves@redhat.com>

PR gdb/22293
* gdb.base/find-unmapped.exp: Don't skip if is_remote target.
(top level): Move some tests to ...
(test_not_found): ... this new procedure.
(top level): Call it.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/find-unmapped.exp