It took me years to realize that I had to look out for myself because bosses won't do it for you.
I finally gave up a Directors position in one company, sold everything we owned, and headed to a different part of the country with no promise of a job, but an expectation that anything would be better than what I left. Not easy to do at 56.
I now make 60% more than I did at my last job, working for an absolutely incredible company and a great boss.
Three things made it possible:
1. Finally believing in myself and my true worth to an organization.
2. Support of my wife (third time was a charm).
3. An overwhelming belief that things would work out for the better. (In my case based on a trust in God. Unusual for someone that hasn't been inside a church for over 30 years other than to get married...)
Definitely keep a realistic track of your skills, accomplishments, and worth to an organization, and if you are in a "co-dependant" job wise up and get the hell out..