4 // This simple program is to test the lldb Python API SBValue.GetChildAtIndex().
8 const char *days_of_week
[7] = { "Sunday",
16 const char *weekdays
[5] = { "Monday",
22 const char **g_table
[2] = { days_of_week
, weekdays
};
39 int main (int argc
, char const *argv
[])
41 uint32_t uinthex
= 0xE0A35F10;
42 int32_t sinthex
= 0xE0A35F10;
46 struct MyStruct s
= { 11, 22 };
47 struct MyBiggerStruct f
= { 33, 44, 55 };
48 int *my_int_ptr
= &g_my_int
;
49 printf("my_int_ptr points to location %p\n", my_int_ptr
);
50 int *fixed_int_ptr
= (int*)(void*)0xAA;
51 int *another_fixed_int_ptr
= (int*)(void*)0xAA;
52 int *a_null_int_ptr
= NULL
;
53 const char **str_ptr
= days_of_week
;
54 for (i
= 0; i
< 7; ++i
)
55 printf("%s\n", str_ptr
[i
]); // Break at this line
56 // and do str_ptr_val.GetChildAtIndex(5, lldb.eNoDynamicValues, True).