From the DIE of the variable you can get its refaddr and then use the DWARFInfo function get_CU_containing(refaddr) to get the CU containing this refaddr (which should be unique to the variable of your interest