2 # Copyright (c) 2013 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
9 class InvalidMemoryTest(gdb_test.GdbTest):
11 def test_invalid_memory(self):
12 self.gdb.ExpectToFailCommand('x 0x1000000')
13 self.gdb.Command('break *0x1000000')
14 # GDB sets breakpoints on "continue" and similar commands and removes them
15 # when program stops, so it is continue command that we expect to fail.
16 self.gdb.ExpectToFailCommand('continue')
19 if __name__ == '__main__':