Embedded would be a field with longer-lived software, yes.
I used to work on helicopter avionics. I'd be surprised if the projected service life of the software was less than 30 years.
Downside: everything is amazingly old-fashioned, even during prototyping.