initial stop. The code was using PrivateResume when it should have used Resume. This was allowing expression evaluation while the target was running, and though that was caught a litle later on, we should never have gotten that far. To make sure that this is caught immediately I made an error SBValue when this happens, and test that we get this error. Differential Revision: https://reviews.llvm.org/D144665
16 lines
137 B
C
16 lines
137 B
C
#include <unistd.h>
|
|
|
|
int
|
|
SomethingToCall() {
|
|
return 100;
|
|
}
|
|
|
|
int
|
|
main()
|
|
{
|
|
while (1) {
|
|
sleep(1);
|
|
}
|
|
return SomethingToCall();
|
|
}
|