fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
orivej has joined #systemtap
<agentzh>
fche: okay, i've found the reason why e->tok is NULL in const_folder::visit_foreach_loop() i mentioned a few days ago.
<agentzh>
it is location_context::translate_array_pointer() fails to set the tok field for the symbol created by new_symref(index_var)
<fche>
good catch, let's fix that
<agentzh>
so we should set sym->tok = v->tok inside new_symref()?
<fche>
yup
<agentzh>
okay. will prepare a patch.
<agentzh>
it took me a lot of time devising a minimal test case that can reproduce it.