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

Unified Diff: tests/gdb/call_from_gdb.py

Issue 10896004: Don't modify memory access right when changing data in debug stub. (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
Index: tests/gdb/call_from_gdb.py
===================================================================
--- tests/gdb/call_from_gdb.py (revision 0)
+++ tests/gdb/call_from_gdb.py (revision 0)
@@ -0,0 +1,18 @@
+# -*- 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 main')
+ assert gdb.ResumeCommand('continue')['reason'] == 'breakpoint-hit'
+ assert gdb.Eval('test_call_from_gdb(1)') == '3'
+ assert gdb.Eval('global_var') == '2'
+
+
+if __name__ == '__main__':
+ gdb_test.RunTest(test, 'call_from_gdb', os.environ['GDB_TEST_GUEST'])

Powered by Google App Engine
This is Rietveld 408576698