view paper/src/stackStack.sh @ 100:39001ece437e

update
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sat, 06 Feb 2021 09:26:14 +0900
parents
children
line wrap: on
line source

49          Stack* stack = createSingleLinkedStack(context);
(gdb) n
50          StackTest* stackTest = createStackTestImpl3(context);
(gdb) n
51          Gearef(context, StackTest)->stackTest = (union Data*) stackTest;
(gdb) p stackTest
$24 = (StackTest *) 0x7fff2f806b50
(gdb) p *stackTest
$25 = {stackTest = 0x7fff2f806bb8, stack = 0x0, data = 0x0, data1 = 0x0, insertTest1 = C_insertTest1StackTestImpl3,
  insertTest2 = C_insertTest2StackTestImpl3, insertTest3 = C_insertTest3StackTestImpl3, insertTest4 = C_insertTest4StackTestImpl3,
  pop2Test = C_pop2TestStackTestImpl3, pop2Test1 = C_pop2Test1StackTestImpl3, next = C_checkAndSetAtomicReference}
(gdb) n
52          Gearef(context, StackTest)->stack = stack;
(gdb) p context->data[D_StackTest]
$26 = (union Data *) 0x7fff2f806444
(gdb) p context->data[D_StackTest]->StackTest
$27 = {stackTest = 0x7fff2f806b50, stack = 0x0, data = 0x0, data1 = 0x0, insertTest1 = C_checkAndSetAtomicReference,
  insertTest2 = C_checkAndSetAtomicReference, insertTest3 = C_checkAndSetAtomicReference, insertTest4 = C_checkAndSetAtomicReference,
  pop2Test = C_checkAndSetAtomicReference, pop2Test1 = C_checkAndSetAtomicReference, next = C_checkAndSetAtomicReference}
(gdb) p context->data[D_StackTest]->StackTest.stackTest
$28 = (union Data *) 0x7fff2f806b50
(gdb) p context->data[D_StackTest]->StackTest.stackTest->StackTest
$29 = {stackTest = 0x7fff2f806bb8, stack = 0x0, data = 0x0, data1 = 0x0, insertTest1 = C_insertTest1StackTestImpl3,
  insertTest2 = C_insertTest2StackTestImpl3, insertTest3 = C_insertTest3StackTestImpl3, insertTest4 = C_insertTest4StackTestImpl3,
  pop2Test = C_pop2TestStackTestImpl3, pop2Test1 = C_pop2Test1StackTestImpl3, next = C_checkAndSetAtomicReference}
(gdb) p context->data[D_StackTest]->StackTest.stackTest->StackTest.stackTest
$30 = (union Data *) 0x7fff2f806bb8