Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: tests/gdb/step_from_func_start.py

Issue 10826183: GDB: Test that we can step inside function. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/gdb/nacl.scons ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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'])
OLDNEW
« no previous file with comments | « tests/gdb/nacl.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698