Fix Issue 10311 - GDB prints wrong value for variable updated from closuse

Not sure, if this is the proper way, how to get values from toir.c to dwarf.c, so please comment.