aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-09-17 02:33:27 -0400
committerJosh Matthews <josh@joshmatthews.net>2014-09-17 02:33:27 -0400
commit4a1d51b98207078fc4b65a6a55f10a34d56c6019 (patch)
tree6824f5074054e6646f80b21f6e1a8d74f38dbc2e
parent1544db8bb9fc7b27282bbf0555a45a662930f7b3 (diff)
parentefb59fde92a848e7c92ac5154dd5016580d211d4 (diff)
downloadservo-4a1d51b98207078fc4b65a6a55f10a34d56c6019.tar.gz
servo-4a1d51b98207078fc4b65a6a55f10a34d56c6019.zip
Merge pull request #3367 from jdm/breakpoint
Add breakpoint utility function.
-rw-r--r--components/util/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/util/lib.rs b/components/util/lib.rs
index 0c186fdb690..b543df42e80 100644
--- a/components/util/lib.rs
+++ b/components/util/lib.rs
@@ -46,3 +46,7 @@ pub mod task;
pub mod time;
pub mod vec;
pub mod workqueue;
+
+pub fn breakpoint() {
+ unsafe { ::std::intrinsics::breakpoint() };
+}