summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Kopec <Matt.Kopec@intel.com>2013-05-08 16:52:34 +0000
committerMatt Kopec <Matt.Kopec@intel.com>2013-05-08 16:52:34 +0000
commit52c8476a4705e483f5d260ba5e88aab66cde8a70 (patch)
treed6e169f9ae075be337c6fef0c8c24933b8206d00
parent667f12b53d84ccdfdd334c45fba021e710734019 (diff)
downloadbcm5719-llvm-52c8476a4705e483f5d260ba5e88aab66cde8a70.tar.gz
bcm5719-llvm-52c8476a4705e483f5d260ba5e88aab66cde8a70.zip
Fix assertion from previous fix for debian os watchpoints.
Also mark one of the tests as expected fail on Linux due to the debian fix. llvm-svn: 181448
-rw-r--r--lldb/source/Plugins/Process/POSIX/ProcessMessage.h2
-rw-r--r--lldb/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/ProcessMessage.h b/lldb/source/Plugins/Process/POSIX/ProcessMessage.h
index 2a4c6121453..2107e92a130 100644
--- a/lldb/source/Plugins/Process/POSIX/ProcessMessage.h
+++ b/lldb/source/Plugins/Process/POSIX/ProcessMessage.h
@@ -149,7 +149,7 @@ public:
}
lldb::addr_t GetHWAddress() const {
- assert(GetKind() == eWatchpointMessage);
+ assert(GetKind() == eWatchpointMessage || GetKind() == eTraceMessage);
return m_addr;
}
diff --git a/lldb/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py b/lldb/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py
index 6af5f1a8507..81a1e0b88c7 100644
--- a/lldb/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py
+++ b/lldb/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py
@@ -20,7 +20,7 @@ class WatchedVariableHitWhenInScopeTestCase(TestBase):
# clearer API to express this.
#
- @expectedFailureDarwin
+ @unittest2.expectedFailure
@dsym_test
def test_watched_var_should_only_hit_when_in_scope_with_dsym(self):
"""Test that a variable watchpoint should only hit when in scope."""
@@ -28,7 +28,7 @@ class WatchedVariableHitWhenInScopeTestCase(TestBase):
self.setTearDownCleanup(dictionary=self.d)
self.watched_var()
- @expectedFailureDarwin
+ @unittest2.expectedFailure
@dwarf_test
def test_watched_var_should_only_hit_when_in_scope_with_dwarf(self):
"""Test that a variable watchpoint should only hit when in scope."""
OpenPOWER on IntegriCloud