It's  called learned helplessness.  You can also see it with women who have been victims of long-term battering. They have to unlearn dependency on the men who beat them in order to move into healthy relationships.  While many succeed, some never get the chance to do so.