[Lldb-commits] [lldb] r149295 - /lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py
Johnny Chen
johnny.chen at apple.com
Mon Jan 30 15:17:07 PST 2012
Author: johnny
Date: Mon Jan 30 17:17:07 2012
New Revision: 149295
URL: http://llvm.org/viewvc/llvm-project?rev=149295&view=rev
Log:
Fixed a typo in the test case. Updated comment.
Modified:
lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py
Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py?rev=149295&r1=149294&r2=149295&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py Mon Jan 30 17:17:07 2012
@@ -1,5 +1,5 @@
"""
-Test lldb watchpoint that uses '-x size' to watch a pointed location with size.
+Test lldb watchpoint that uses 'watchpoint set -w write -x size' to watch a pointed location with size.
"""
import os, time
@@ -62,7 +62,7 @@
# protocol of only accessing the allowable index range of [0, 6].
self.expect("watchpoint set -w write -x 1 g_char_ptr + 7", WATCHPOINT_CREATED,
substrs = ['Watchpoint created', 'size = 1', 'type = w'])
- self.runCmd("expr unsigned val = *g_char_ptr; val")
+ self.runCmd("expr unsigned val = g_char_ptr[7]; val")
self.expect(self.res.GetOutput().splitlines()[0], exe=False,
endstr = ' = 0')
More information about the lldb-commits
mailing list