Marcus Crestani <crestani(a)informatik.uni-tuebingen.de> writes:
First, figure out the address of the lookup table slot:
(gdb) print &mc_allocator_globals.ptr_lookup_table[l1_index]
$1 = (level_2_lookup_tree **) 0xXXXXXXXX
Then, set a watchpoint to this address:
(gdb) watch *(int *) 0xXXXXXXXX
I think "watch *$1" should also work -- that's what those
dollar-prefixed numbers are for.