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_call') | |
Mark Seaborn
2012/08/30 16:55:57
Why not just set a breakpoint on main()? Then you
halyavin
2012/08/31 08:01:24
Done.
| |
12 assert gdb.ResumeCommand('continue')['reason'] == 'breakpoint-hit' | |
13 gdb.Command('delete 1') | |
14 assert gdb.ResumeCommand('finish')['reason'] == 'function-finished' | |
15 assert gdb.Eval('test_call(1)') == '2' | |
16 | |
17 | |
18 if __name__ == '__main__': | |
19 gdb_test.RunTest(test, 'call', os.environ['GDB_TEST_GUEST']) | |
OLD | NEW |