This is an archive of the discontinued LLVM Phabricator instance.

Applying D7950 to four near copies of the file.
ClosedPublic

Authored by chaoren on Mar 1 2015, 9:58 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

chaoren updated this revision to Diff 20976.Mar 1 2015, 9:58 PM
chaoren retitled this revision from to Applying D7950 to four near copies of the file..
chaoren updated this object.
chaoren edited the test plan for this revision. (Show Details)
chaoren added reviewers: clayborg, zturner, ki.stfu.
chaoren added a subscriber: Unknown Object (MLST).
vharron accepted this revision.Mar 1 2015, 10:50 PM
vharron added a reviewer: vharron.
vharron added a subscriber: vharron.
test/functionalities/stop-hook/multiple_threads/main.cpp
40 ↗(On Diff #20976)

The test sets a breakpoint on this line. That seems not great because there is executable code on this line.

lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py:39

I think you should move the comment to the printf, but if it works it's up to you.

test/functionalities/watchpoint/multiple_threads/main.cpp
44 ↗(On Diff #20976)

Same here

53 ↗(On Diff #20976)

Good you replaced this. rand only goes from 0-32767 on Windows.

This revision is now accepted and ready to land.Mar 1 2015, 10:50 PM
ki.stfu accepted this revision.Mar 1 2015, 11:00 PM
ki.stfu edited edge metadata.

lgtm. I'll check it on OS X later.

chaoren added inline comments.Mar 1 2015, 11:01 PM
test/functionalities/stop-hook/multiple_threads/main.cpp
40 ↗(On Diff #20976)

I initially did move it to the printf, but the length of the line bothered me.
It should be identical anyway if breakpoints are behaving correctly. ¯\_(ツ)_/¯

These tests pass on OS X.

tberghammer requested changes to this revision.Mar 2 2015, 4:05 AM
tberghammer added a reviewer: tberghammer.
tberghammer added a subscriber: tberghammer.

Please update the Makefile for the tests where you replaced pthreads with std::threads to use ENABLE_STD_THREADS instead on ENABLE_THREADS

This revision now requires changes to proceed.Mar 2 2015, 4:05 AM
clayborg accepted this revision.Mar 2 2015, 10:35 AM
clayborg edited edge metadata.
chaoren updated this revision to Diff 21019.Mar 2 2015, 11:12 AM
chaoren edited edge metadata.

Using ENABLE_STD_THREADS instead of ENABLE_THREADS.

tberghammer accepted this revision.Mar 2 2015, 11:14 AM
tberghammer edited edge metadata.
This revision is now accepted and ready to land.Mar 2 2015, 11:14 AM
This revision was automatically updated to reflect the committed changes.