OLD | NEW |
---|---|
(Empty) | |
1 # -*- python -*- | |
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. | |
5 | |
6 import gdb_test | |
7 import os | |
8 | |
9 | |
10 def test(gdb): | |
11 gdb.Command('break test_step_from_function_start') | |
12 assert gdb.ResumeCommand('continue')['reason'] == 'breakpoint-hit' | |
13 gdb.ResumeCommand('step') | |
14 gdb.ResumeCommand('step') | |
15 #assert gdb.Eval('global_var') == '0' | |
Mark Seaborn
2012/08/10 14:59:50
Please don't check in commented-out code like this
| |
16 gdb.ResumeCommand('step') | |
17 assert gdb.Eval('global_var') == '1' | |
18 gdb.Quit() | |
19 | |
20 | |
21 if __name__ == '__main__': | |
22 gdb_test.RunTest(test, 'step_from_func_start', os.environ['GDB_TEST_GUEST']) | |
OLD | NEW |