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

Side by Side 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, 3 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
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 main')
12 assert gdb.ResumeCommand('continue')['reason'] == 'breakpoint-hit'
13 assert gdb.Eval('test_call_from_gdb(1)') == '3'
14 assert gdb.Eval('global_var') == '2'
15
16
17 if __name__ == '__main__':
18 gdb_test.RunTest(test, 'call_from_gdb', os.environ['GDB_TEST_GUEST'])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698