forked from ariadne/libucontext
test: add additional verbosity
parent
d696a0b692
commit
f3a873e6e6
|
@ -56,6 +56,9 @@ int main (int argc, const char *argv[]) {
|
||||||
memset(st2, 'B', sizeof st2);
|
memset(st2, 'B', sizeof st2);
|
||||||
|
|
||||||
|
|
||||||
|
printf("setting up context 1\n");
|
||||||
|
|
||||||
|
|
||||||
getcontext(&ctx[1]);
|
getcontext(&ctx[1]);
|
||||||
ctx[1].uc_stack.ss_sp = st1;
|
ctx[1].uc_stack.ss_sp = st1;
|
||||||
ctx[1].uc_stack.ss_size = sizeof st1;
|
ctx[1].uc_stack.ss_size = sizeof st1;
|
||||||
|
@ -63,6 +66,9 @@ int main (int argc, const char *argv[]) {
|
||||||
makecontext(&ctx[1], f1, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
|
makecontext(&ctx[1], f1, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
|
||||||
|
|
||||||
|
|
||||||
|
printf("setting up context 2\n");
|
||||||
|
|
||||||
|
|
||||||
getcontext(&ctx[2]);
|
getcontext(&ctx[2]);
|
||||||
ctx[2].uc_stack.ss_sp = st2;
|
ctx[2].uc_stack.ss_sp = st2;
|
||||||
ctx[2].uc_stack.ss_size = sizeof st2;
|
ctx[2].uc_stack.ss_size = sizeof st2;
|
||||||
|
|
Loading…
Reference in New Issue