I've struggled with codependency most of my life - seems like a family gene! I know what you're talking about
@Engineer and it's a hard thing to get on top of, but not impossible.
It's about staying with you and your own feelings and being on your own side, something that should come so naturally but doesn't when you've got codependency going on.
It's hard to get on top of as you have to focus on yourself, not others, and not being able to do that is the very root of the disease!
It took a lot of therapy for me to even be able to see it was a problem!
But I did get there. To be honest, it's an absolute relief when you do. I allowed so much that wasn't good or right in my life before I understood, and my relationships now are equal and I allow the ebbs and flows of life and affections without trying to control it all - which is kind of what it is too. - Hanging on so tightly to people, enslaving yourself to please others can get you so utterly trapped and stuck.
You need you more than you need anyone else!
It's very liberating and really worth working on, but it takes time!
Sorry about your friend.