No character named "Doctor" reveals this in Star Wars. You're likely thinking of Obi-Wan Kenobi (later confirmed by Yoda and Darth Vader himself). In The Empire Strikes Back, Vader tells Luke, "I am your father." Obi-Wan's ghost later explains he "betrayed and murdered" Anakin—from a certain point of view, Anakin died when Vader was born.