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.
6 from gdb_test import AssertEquals
11 gdb.Command('break main')
12 gdb.ResumeAndExpectStop('continue', 'breakpoint-hit')
13 AssertEquals(gdb.Eval('test_call_from_gdb(1)'), '3')
14 AssertEquals(gdb.Eval('global_var'), '2')
17 if __name__ == '__main__':
18 gdb_test.RunTest(test, 'call_from_gdb')