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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/gdb/nacl.scons ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gdb/step_from_func_start.py
===================================================================
--- tests/gdb/step_from_func_start.py (revision 0)
+++ tests/gdb/step_from_func_start.py (revision 0)
@@ -0,0 +1,22 @@
+# -*- python -*-
+# Copyright (c) 2012 The Native Client Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import gdb_test
+import os
+
+
+def test(gdb):
+ gdb.Command('break test_step_from_function_start')
+ assert gdb.ResumeCommand('continue')['reason'] == 'breakpoint-hit'
+ gdb.ResumeCommand('step')
+ gdb.ResumeCommand('step')
+ #assert gdb.Eval('global_var') == '0'
Mark Seaborn 2012/08/10 14:59:50 Please don't check in commented-out code like this
+ gdb.ResumeCommand('step')
+ assert gdb.Eval('global_var') == '1'
+ gdb.Quit()
+
+
+if __name__ == '__main__':
+ gdb_test.RunTest(test, 'step_from_func_start', os.environ['GDB_TEST_GUEST'])
« 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