I think this patch shouldn't be committed; I'm just posting it for
reference.
This patch implements a new prologue analyzer for the S/390. It's
meant to be general enough to handle the complex prologues GCC emits
on the S/390, and robust enough to tolerate compiler changes. In my
experience, it does pretty well, even on optimized code.
However, the S/390 GDB folks at IBM and I agree that GDB on the S/390
should move towards using Dwarf 2 CFI and location lists whenever
possible, and do only minimal prologue analysis to handle those few
common cases where Dwarf 2 CFI is not available. And it looks to me
as if the work needed in GDB's core code to make it possible for any
target to use Dwarf 2 CFI is almost complete. In that light, it
doesn't make sense to dump a new, large, complex prologue analyzer
into the code base that will soon be eclipsed by a better solution.