2 # Copyright (c) 2012 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 BreakContinueThreadTest(gdb_test.GdbTest):
11 def test_break_continue_thread(self):
12 self.gdb.Command('break foo')
13 self.gdb.Command('break bar')
14 # Program runs 2 threads, each calls foo and bar - expect 4 breakpoint hits.
15 self.gdb.ResumeAndExpectStop('continue', 'breakpoint-hit')
16 self.gdb.ResumeAndExpectStop('continue', 'breakpoint-hit')
17 self.gdb.ResumeAndExpectStop('continue', 'breakpoint-hit')
18 self.gdb.ResumeAndExpectStop('continue', 'breakpoint-hit')
21 if __name__ == '__main__':